How do I detect when a shortcut key such as Ctrl+O is pressed in a WPF (independently of any particular control)? I tried capturing KeyDown but the KeyEventArgs doesn't tell me whether or not Control or Alt is down.
...
So I'm trying to get a WSE 2.0 SP3 client to work with a WSE 3.0 server. I'm running into an issue with this line of code on the client:
transaction.RequestSoapContext.Security.Elements.Add(new MessageSignature(token));
I'm wondering how important is this line if the client is already using the following line of code:
transaction.Req...
I got a job offer today for a position as a SharePoint developer. One of my friends is telling me that sharepoint is a big mess and not something I would want to be doing.
What are some of your experiences/thoughts in working with SharePoint?
...
In the NUnit Gui Runner, there are 6 tabs. I can write to the Console.Out by writing something like:
Console.WriteLine("This will end up in the Console.Out");
I can write to the Trace tab by writing something like:
System.Diagnostics.Trace.WriteLine("This will end up on the Trace tab");
But how do I write to the two other tabs, "...
There are six tabs in the NUnit Test runner:
Errors and Failures
Tests Not Run
Console.Out
Console.Error
Trace
Log
I know what Errors and Failures are for but the purpose of the remaining tabs is confusing. Both Console.Out and Trace appear to serve a similar purpose.
As a comment has pointed out, I have written a similar question...
I hear so much hype about F#. What makes functional programming so great? Is it really worth leaning?
...
I'm working on an windows mobile application built using c#/dotNet in visual studio. There is a form with a DateTimePicker control. I can use the popup keypad to edit the day and month but it doesn't work for the year.
Has anyone else had this problem? Any way to fix it?
...
My .Net appliaction exits abruptly on certain machines ( this is a desktop application). I tried to catch the exception but the catch statement I put on simply can't catch the exception that was happening.
Any ideas how to solve, or diagnose this problem?
Note: This exception only occurs at client's machine, release mode, on which we ...
I don't know if this is a question more suited for Serverfault.com, really depends on the answer, but I have followed this tutorial in .NET C# to setup a WCF service under 'wsHttpBinding' (Transport Security & Certificate Authentication), I have created a test development certificate using the methods described here and I have also confi...
Where can I find the windows certificate store location on the hard drive for server 2003. I am coding a c# utility for managing few certificates we use to notify when they are expiring. So, I choose to store them in the windows certificate store. Instead of using any existing location(Personal...) that I see in MMC I would like to creat...
I'm using SqlDataAdapter.Update(DataTable) to throw a table at the database, but the SqlDataAdapter ignores my InsertCommand to write its own, which only sends the primary key and all the rows that can be null if they want. How do I get it to behave?
I step through the code before and after I call Update(). Before, it's my InsertCommand...
I've got a web setup project with a custom screen in it that asks for a machine name. Is there anyway to prepopulate this field with the current machines name?
For the case that I need it for just including "Localhost" does not meet my requirements.
"Environment.MachineName" will return the machine name within a code block which would...
exact duplicate:
http://stackoverflow.com/questions/559148/how-can-i-add-a-trace-to-every-method-call-in-c
Hi, I like to do tracing in my c# code. I don't like to add statements in each method to do it. Is there any way to use a method to do trace when rest of the methods in the application getting invoked at runtime.
Thanks,
P.Gopal...
I wonder, does there exist something like Velocity, but for internal use?
Essentially a .net Object Cache that I'll install at a server and that speaks WCF (or something more appropriate?) with my applications - mainly ASP.net, but possibly WinForms as well.
Objects should be persistable if possible, but held in memory most of the time...
Hi to all,
I want to save properties of controls that user change at runtime.(.Net windows form application)
I just using BinaryFormatter to serialize object, It's work but some properties not serialize, therefore i want to save object as binary
Note: I using third-party component without source code
Could you please help me?
...
I've got the following XAML used to display detailed information about an item selected in a list view. I want the rectangle to show the standard info color behind the text except when the selected item represents an error message. The code below doesn't work as is and always shows the info color. It works great if I don't specify a Fill...
With .NET 3.5 SP1 we can now run windows applications over the network by default. Even with the earlier versions, with some effort (setting up code access security) , we could run executables from a network share.
My question is, what are the implications of distributing applications by putting them on a network share. For, e.g. how i...
Hi,
I need to consume data from a webservice. I am receiving xml data and using this to create objects through property setters.
In one particular case, an attribute of the object (called "is_active" and indicates whether the object is active or inactive in the application) is represented sometimes by
<field type="BooleanField" name="...
I have a control whose parent is a ScrollableControl. How do I find the part of the control that's actually visible to the user? Both are rectangular - there's no funny business with Regions.
...
I'm writing a C# application that reads data from an SQL database generated by VB6 code. The data is an array of Singles. I'm trying to convert them to a float[]
Below is the VB6 code that wrote the data in the database (cannot change this code):
Set fso = New FileSystemObject
strFilePath = "c:\temp\temp.tmp"
' Output the data t...