-
- LINQ To SQL - Context lifetime
by Eric Harmon
- 0 Replies
- Last post
by Eric Harmon
- I'm playing with LINQ To SQL with a WinForms application, and I don't completely understand how to best manage the lifetime of the datacontext. Let's say I have a grid that I load data into. The user can scroll through the data and add, modify, or delete records. Adding and modification is done through a separate dialog.
My loading code looks something like this (simplified):
public
-
- WCF & WPF Basics error
by Sriman
- 5 Replies
- Last post
by Christian Weyer
- Hi I have created a service and generated a proxy and I get the contract mismatch error:
http://localhost:8085/WCFServiceAndClient/CustomerService
- < s:Envelope xmlns =" http://schemas.xmlsoap.org/soap/envelope/ " >
- < s:Body >
- < s:Fault >
< faultcode xmlns:a =" http://schemas.microsof
-
- [LINQ to SQL beta 2] EntitySet is not bindable in WPF?
by jods
- 14 Replies
- Last post
by BACHRATY Gergely
- Binding an EntitySet (basically an association) to a list in WPF works well. That is, until you try to modify to add or remove entities from the set. The GUI doesn't get updated. As I understand it, it's because the EntitySet doesn't implement INotifyCollectionChanged. Am I missing something Not being able to databind my LINQ entities is a HUGE limitation.
-
- How to recover information of the user according to his click ?
by Npi
- 1 Replies
- Last post
by Daniel Molina - MSFT
- Hello, I have any questions about VSTO for Outlook 2007. I success to create a button in my CommandBar (Standard) but if I want this button in my Appointment for my Calendar, it doesn't exist. So my question is : is it possible to have my button when I create an appointment And my second question will be : how it's possible to know what the user is clicking. For example, he click on an email : ho
-
- Determining Message Body Size during IOutputChannel.Send...
by Kieron Lanning
- 13 Replies
- Last post
by Brian McNamara - MSFT
- Hi All,
Does anyone know how I can get the size (in bytes) of the message body being sent during the IOutputChannel.Send method
I'm creating a channel currently, and no matter what the data being past through I need to get at the size of the body (basically the size of the serialised version of the parameters).
Dor example:
void SendSomeData (ObjectBleh bleh); - Need si
-
- DataShape
by Polina159216
- 5 Replies
- Last post
by Miha Markic
- Where can I see simple sample how to use DataShape instead of Including
I have this code:
var referenced = from c in assembling.Computers where c.Computer_Id == 1 select c.Lot; referenced = referenced.Including(h => h.Model);
Samples here http://forums.microsoft.com/msdn/showpost.aspx postid=1275820&SiteID=1 don't give understanding
-
- Setting keyboard focus
by John Dunn
- 2 Replies
- Last post
by John Dunn
- Given the following XAML, is it possible to automatically set keyboard focus so the arrow keys can be used to navigate the buttons After the window is loaded I can hit TAB and then the arrow keys can be used but I'd like to be able to use the arrows keys from the get go. I'm guessing I'm missing something simple here...
Code Snippet
<Window xmlns="http://schemas.microsoft.com
-
- Freezing Client
by rnby
- 14 Replies
- Last post
by Buddhike de Silva
- Hi,
I have the following question.
When I try to run somehting on the server from my client (windows form) the client freezes until the server is finished.
What I want is to display a progress bar or something moving but not that it freezes and if you try to click on the form to make it active it tells you (Not Responding) till the server is finished.
Below is the code I use to con
-
- Entity Framework 'UPDATE' Performance Issue
by CompuBoy
- 1 Replies
- Last post
by Colin Meek - Microsoft
- Recently, I tried to monitor the performance of entity framework in a few situations. During my tests, I used SQL Server Profiler to inspect the queries generated by entity framework. While monitoring update operations, I found that before sending the SQL update command for each updated record, a select command is executed against the database for that record and all its related records. In my exa
-
- Style doesn't applies on Vista
by Corrado Cavalli
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- I've created this snippet of XAML using Blend:
<Window.Resources> <Style x:Key="ButtonStyle1" TargetType="{x:Type Button}"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="#FF3BD820"/> </Trigger> </Style.Triggers> </Style>
-
- Move Image using MouseMove and TranslateTransform
by Vansen
- 0 Replies
- Last post
by Vansen
- Hi There,
need some advice again...
I got a WPF Project. In there I got a class inheriting from System.Windows.Controls.Image. This class is hosted by a Form.
Inside this class i use the MouseDown / MouseUp / MouseMove Events to be able to drag the image control. In the class i also have a global TranslateTransform object. Inside the MouseMove Event i calculate the Offset the mouse has mo
-
- Can't use two instances of Expander ControlTemplates in same application
by Patrick Sears
- 3 Replies
- Last post
by globbe
- So, I'm pretty sure this is a namescope issue with my control template, but I can't for the life of me figure out what it is. Everything I've read on namescoping indicates what I'm doing should be working just fine. When I use the following ControlTemplate for an expander in my application, it will work fine if I only use it once. However, if I attempt to assign it as the template for a SECOND exp
-
- WPF/E and IE6
by Todd H.
- 3 Replies
- Last post
by CodeMonkeyPlus
- Greetings.
The short question is: Can I develop Asp.Net apps using Framework 3.0 and IE6, or do I need to upgrade my browser to IE7
Tried to use the <Canvas> and <MediaElement> tags and got an error that they are not supported in IE6.
Many thanks,
CM+
-
- Converting Message between soap versions
by Bradrover
- 3 Replies
- Last post
by Bradrover
- Hello, is there a simple way to convert a received Soap11 formatted Message object to Soap12 Looking at the Message.CreateMessage overloads its not clear to me if the MessageVersion I provide has to match what I read in (say, using XmlDictionaryReader), or if it just sets the message version of the created message. Any examples of using this would be great.
-
- Contact Point in 3D Models - HELP !!!
by ChrisQuesaada
- 0 Replies
- Last post
by ChrisQuesaada
- Hello,
I'm developing a application with some 3D Models. The big problem is that I need to define Contact Points in a specific 3D Model. Ok, what is a contact point, a contact point is a place (point) in the meshes of a Model 3D that define a place where others 3D Models would be positioned. So, I need to Know the position of a specific point in a Mesh to coincide two 3D models. The models
-
- wcf requisites
by foobar101
- 5 Replies
- Last post
by ChiomaOs - MSFT
- On my Win2k3 SP2 machine, I've .Net 3.0 and VS2k5 SP1. What else do I have to install to write "Hello, World" in WCF Thank you.
-
- Programmatically click a button problem
by Freedon Nadd
- 5 Replies
- Last post
by Matthew Adams
- Hi,
I found on the net a link to programmatically click a button
http://joshsmithonwpf.wordpress.com/2007/03/09/how-to-programmatically-click-a-button/
and it works great, but the problem I have is that a created a great button style( in my opinion )
and calling a click event programmatically doesn't set the IsPressed property to True,
< Trigger Property = " Button
-
- linq to sql and .net3.5 beta2
by maxtoroq
- 1 Replies
- Last post
by Dinesh Kulkarni - MSFT
- Are there any changes in the Linq to sql asemblies (System.Data.Linq.dll) from beta1 to beta2
-
- Table<TEntity> constraint
by NTDeveloper
- 7 Replies
- Last post
by Computing.Mastery
- In Beta2, TEntity is constrained to be a class; there was no such constraint in Beta 1. Unfortunately, constraining TEntity to be a class eliminates a very useful pattern. Suppose that I have a collection of tables T1, T2, ..., TN that share a common structure. I could define an interface that defines this structure and declare that the corresponding table classes implement an interface I that def
-
- Invoke a WCF Web Service with an HTTP GET. How?
by dimitrod
- 16 Replies
- Last post
by dimitrod
- Hello, I am new to WCF and to get started I have read some tutorials but I couldn't find any information about configuring and exposing a WCF web service that could be consumed through an HTTP GET request. All the services that I saw were consumed through a WCF client with an HTTP POST and SOAP. Is it possible to point my browser to some special url that would allow me to invoke a method by passin
-
- Bug with generic Types
by MiddleTommy2
- 4 Replies
- Last post
by Matt Warren - MSFT
- I have made a dynamic query filter that adds to the where clause in a Linq query: simple example: public interface IDeleted { bool deleted{get;set;} } public class QueryFilter<T> where T:IDeleted { public List<Expression<Func<T, bool>>> Filters = new List<Expression<Func<T, bool>>>(); public DataContext ctx = new DataContext(Constring); public vo
-
- Image Source equivalent in c#
by Max Barfuss
- 9 Replies
- Last post
by WolfgangB
- I am building a class library project. I have embedded images into this library and have several controls that use the following XAML:
Code Snippet
...
< Image Source = " ./Resources/Images/myImage.png " />
...
What is the equivalent run time C# code to create an Image (or set the Image property of an existing control) with myImage.png
-
- How to change the HeaderPanel of a TabControl?
by Jackie Liu
- 3 Replies
- Last post
by Bragi
- I want a vs style tabcontrol. I think I need change the style of the HeaderPanel using ControlTemplate. But I don't know how to do it Who can help me Thanks.
(I want to change the border from rectangle to trapezoid.)
-
- Two events instead of one
by j a g a
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- Hi,
the ObservableCollection<T> has a protected PropertyChanged event and an explicit INotifyPropertyChanged.PropertyChanged event.
Can somebody tell me, why are these events better than one public PropertyChanged event
-
- Where is system.windows.dll
by DrFunFrock
- 4 Replies
- Last post
by DrFunFrock
- What do I need to install to get system.windows.dll I need it for System::Windows::Media.
Searched the disk and it's not there. I Installed the SDK and .Net3.0 and 2005 Extensions on Vista Ultimate.
Thanks
Doc