For a small utility I am writing (.NET, C#), I want to monitor clipboard copy operations and clipboard paste operations.
My idea is to provide my own data when pasting into an arbitrary application.
The monitoring of a copy operation can be easily done by using a clipboard viewer.
Something that seems much more advanced to me is to wr...
Hello,
I'm brand new to WCF and I was wondering how to architect my design.
I want to expose methods for all my domain objects to be able to get and set their properties. I have them all split up into their own interfaces. i.e)
public interface IGroupDAO {
IEnumerable<Group> FindGroup(string criteria);
Group GetGroup(int groupID...
We are trying to get Resharper introduced to our company but it would have to be for all developers. Management want us to justify the cost with a business case.
I am unsure how to go about getting proof that Resharper will benefit the business. What kind of statistics can you get from it?
Any help with this would be appreciated.
...
Are there any USB developers out there who use .NET?
I know one way of communicating with USB HID device is creating wrappers to the Windows API's like CreateFile, WriteFile and ReadFile. But I am wondering does anyone know if you can use any of the .NET classes to do the same thing. I am certain that I will still have to use some of th...
Is there a way for class library to detect when it's loaded, in order to perform some initialization?
I've tried adding Program.cs with static Main method, which didn't help. I tried setting Startup object in project properties, but only (None) is available.
I know Win32 libraries have entry points, do .NET class libraries have them?
...
I am working on some classes which I need to serialize/deserialize to xml, that can be used for configuration. Here is a sample of what I am trying to do
[Serializable]
public class MyConfig
{
[XmlElement]
public string ConfigOption { get; set; }
[XmlElement]
public Uri SomeUri { get; set; }
}
I want to override the ...
Hello Overflow,
I am new to Windows Workflow [WF], and interested in evaluating WF for business purposes. I decided to work through an introduction
[TestMethod]
public void TestMethod ()
{
TextWriter writer = new StringWriter ();
Sequence sequence = new Sequence
{
Activities =
{
// so, assigning...
I've been having some trouble scaling controls in my application properly with the form font size. The problem is that the form dynamically adds controls in response to user actions. Any controls that are on the form when the font size is initially set scale perfectly, but those added afterwards have issues. Their font scales properly, b...
Why is it necessary to make a function STATIC while using delegates in C# ?
class Program
{
delegate int Fun (int a, int b);
static void Main(string[] args)
{
Fun F1 = new Fun(Add);
int Res= F1(2,3);
Console.WriteLine(Res);
}
**static public int Add(int a, int b)**
{
int result;
...
Why I can't declare abstract an constructor of my class like this:
public abstract class MyClass {
public abstract MyClass(int param);
}
...
I'm having some strange problems with a site using .net 2.0 and IIS 6. The site uses resx files so it's localized in many languages. In some of those files we make changes to the resx and recompile, and the changes don't show up on the site. Ever. It's primarily in one language (Arabic) that this happens, but occasionally other languages...
How to access the elements within an in WebBrowser in C#.NET?
...
Is there a simple way to get the names of all the user names of a local Windows 7 machine using .Net? So if I had a machine named MyPC, and it had 3 users MyPC\Mike, MyPC\Bob, and MyPC\Steve, I'd just want to be able to query to get Mike, Bob, and Steve. Of course, I don't care if they have the computer name attached, or not, as well.
...
I am playing with Rx in .Net3.5SP1 and trying the 101 Rx Samples. I am trying the first sample (Start - Run Code Asynchronously) but it doesn't seem to actually run asynchronously. For example,
Console.WriteLine("[Creating]");
var o = Observable.Start(() =>
{
Console.WriteLine("Calculating...");
...
Hi, I have a custom attribute, inside the constructor of my custom attribute I want to set the value of a property of my attribute to the type of the property my attribute was applied to, is there someway to access the member that the attribute was applied to from inside my attribute class?
...
I'm working with a managed exe that crashes immediately when run. Usually I'd expect a dialog which allows an option to launch the debugger but no such luck in this case. Also, the program crashes too quickly for me to use attach to process in VS.
...
How can I create a program with C# to submit the form(in the web browser CONTROL in windows Apps)automaticlly ?
...
Our (ASP.Net) application has to talk to an LDAP/Active Directory server for verifying user groups. Now several members of our team need to be able to work disconnected.
Is there a way to set up a local LDAP server on the development machine (Windows 7 Pro)?
...
int x = 10;
x += x--;
In C#/.Net, why does it equal what it equals? (I'm purposely leaving the answer out so you can guess and see if you're right)
...
I was just reading a question about how to add parameters to a SqlCommand in .NET, and it raised a question for me. In all of my programs, this is how I add parameters to my commands:
SqlCommand cmd = new SqlCommand(cmdText,conn);
cmd.Parameters.Add(new SqlParameter("@name",value));
I know that you can also add parameters in the foll...