.net

can not find C/C++ in project properties

I am following a tutorial and one of the steps its asking is to go to my projects properties and click on c/c++ and add a path to "Additional Include Directories" property. I am using visual C++ Express Edition 2008. the tutorial is using the same thing. Is there away to get this or an alternative ?? This is my screen This is tutorial...

App.config only for my developer machine.

Can I create app.config or web.config file that applies only to my developer machine, as opposed to using the default configuration files that are checked into source control? ...

Performance of passing data between .Net and COM assemblies

I am in the process of migrating a legacy VB6 app to .Net, however since it is a high-profile business critical application, it is being done piece by piece. In the interest of improving performance, there is one method which gets hit a lot,thousands of times during the application life, and I was wanting to rewrite it in .Net (C#) to s...

How to capture the value change of numericUpDown ctrl real-time in .NET?

I have implement the ValueChanged event, but I found it will be triggered only after change the focus from numericUpDown to other control or by clicking the up/down arrow. Inputting the value in the control will not trigger ValueChanged event. What I did now is adding an KeyDown event and judge if the input value is numeric (can not in...

What's the best flexgrid in .NET?

Hi, I found a few flexgrid in VS2008. What's the best? I'm looking for the following capabilities: Hierarchic Sorting (primary and secondary) context menu Colorize the fields and add an icon to fields If you think I'd better find some 3rd-party component for this requirements, please let me know. Thanks! ...

How to start using WCF/WPF?

I've been using .net for quite some time, and everywhere I interview these days, I keep getting asked about my knowledge with .NET 3.0/3.5 technologies (WF, WPF, WCF etc.) How do you start learning those? Any good links available out there? Should I change my current code to start working like that? ...

How to achieve clean code-behind files?

Working with WPF it is good practice to keep your xaml.cs code behind files small and clean. The MVVM pattern helps achieving this goal through Data Bindings and Command Bindings where any business logic is handled in the ViewModel classes. I am using the principles of the MVVM pattern and my code-behind files are rather nice and clean...

Thread-exclusive data: how to store and access?

Is there a possibility in .NET to bind an object instance to a current execution context of a thread? So that in any part of the code I could do something like CurrentThread.MyObjectData.DoOperation() and be sure that I access thread-specific data? thanks! ...

How to make WCF client use the same data types as the WCF service

I have a .NET WCF service that services only .NET WCF clients (all .NET 3.5, no interoperability, via TCP, binary encoding). Using svcutil.exe the composite types that are used by the data members of the service are generated as part of the proxy.cs class used by the clients. However, what to do if I wanted to reference the same types d...

Create GUID of Custom Format...

.NET Allows to create GUID in pre-determined format.. I want to create it with my custom format.. Is it possible?how? ...

Need to block any IP on a computer by coding in .Net (C#). Anyone know the best/easiest way to do this?

I am playing around with a way to kick cheaters in Modern Warfare 2 (when you are the host). So far I have been able to use winpcap to sniff packages to identify the player names and their IPs. The next thing I need is a way to block all traffic (or just the target IPs UDP traffic to my machine). Hence the player will timeout/lagout. D...

How to implement Balloon message in a WPF application

We would like to use balloon messages as described in the UX Guide from Microsoft. I found some samples which uses native code from Windows Forms, but the native code requires a handle to the component which a bit difficult for a WPF application since it doesn't follow the same concept. I found some sample code which uses WPF's decorato...

Why a C# struct cannot be inherited?

I am reading CLR via C# by Jeffery Richter and it says a struct is a value type and cannot be inherited. Why not? Any technical reasons? Or philosophical ones? ...

Specifications for DB file systems?

Hi Is there any specifications (online resources ) avaialbe for DB file system development. Like how the data file is organized and algorithms used for traversal, indexing. Am in a task to build a system to handle the operations like storing and retrieving the documents(JSON) in a custom file structure.. I know there are No-SQL altern...

how to run add-in on different system?

I have one shared add-in created in visual Studio 2005. This Add-in is worked on my system fine but if i tried to run this add-in on different system then it is not working. I found the problem behinde this but is it correct or not. In my view the problem is when we create add-in through visual studio then the entry of this add-in is int...

Could not load file or assembly 'System.Web.Abstractions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I am getting the below error any idea?? I get this error message only when the controller call ValidateForm() method. Could not load file or assembly 'System.Web.Abstractions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assem...

Casting Linq Query to a Structure in .Net

Good Morning, I have created a structure to be a cut down version of a Class that I already have. I am trying to use a linq query to iterate through the list of MyClass and create a List based on the results (A discinct list based on a few of the properties on MyClass). Something like this... List<MyStructure> thisList = (from MyClas...

Determine framework (CLR) version of assembly

From the command line (or by any means really), how can I determine which clr version a .net assembly requires? I need to determine if an assembly requires 2.0 or 4.0 clr version. ...

Workflow Services Duplex Binding

Is Duplex Binding supported in windows Workflow Services and WCF integration? Can an activity "register" with a WCF service and then can a WCF service raise an event to the registered activity in the workflow when it needs to? ...

How do I Implicit delegates conversion?

How do I implicitly convert a delegate to other? // old public delegate OldClickEventHandler(object sender, OldClickEventArgs e); class OldClickEventArgs { public int intEnumValue; OldClickEventArgs(int enumValue){ this.intEnumValue = enumValue; } } // new public delegate NewClickEventHandler(object sender, NewClickEventArgs e); clas...