Actually, there is no big different if you want to programmatically click a button in either WPF or Windows Form. They might have slightly different approach. Click: Button1.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); Press: typeof(Button).GetMethod("set_IsPressed", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(Button1, new object[] { true }); Unpress: typeof(Button).GetMethod("set_IsPressed", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(Button1, new object[] { false }); Other solution is just ButtonAutomationPeer: Please [Read More ...]

About Big endian and Little endian explanation, please read the following content from Microsoft: When designing computers, there are two different architectures for handling memory storage. They are called Big Endian and Little Endian and refer to the order in which the bytes are stored in memory. Windows NT was designed around Little Endian architecture [Read More ...]

When you create a new Windows Form application in Visual Studio 2010, and if you want to do something related config file, normally you will use ConfigurationManager namespace, for example: // Get the AppSettings section.     NameValueCollection appSettings =    ConfigurationManager.AppSettings; However, when you input “ConfigurationManager” in code, you will find the Visual Studio 2010 display [Read More ...]

DataSet is an in-memory representation of a database, providing a consistent relational programming model no matter what format of data source. It contains multiple data tables and their relationship and constraints information. DataSet works on ADO.NET disconnected mode; DataReader is a read only, forward only stream of data from a database,  Data are returned as [Read More ...]

Even you are an experienced Bing map developer, you still might forget how to start to develop a Bing map application after some time if you no more touch the Bing map stuff. So here we record some initial tings for Bing map development. Microsoft Bing map developer center site: http://www.microsoft.com/maps/ The first step you [Read More ...]

We found a nice article about .NET Garbage Collection, but it is in Chinese: GC Article

If you use Microsoft Chart Control in your Windows Form Application and add the function of zoom in and zoom out, you have to care about the initial and Axis data settings, if you did not set correctly, you might get some errors, the following is the one of multiple errors: When you zoom in [Read More ...]

After you zoom in the Microsoft Chart control. you will see X scroll bar and Y scroll bar which you can scroll the view. Also, you can see two small icons beside the scroll arrow button on scroll bars, the one is on X scroll bar, another one is on Y scroll bar. They are [Read More ...]

Our program got an error in some case, and the windows 7 pops up the following window: xxxx has stopped working windows can check online for a solution to the problem. Check online for a solution and close the program Close the program Debug the program When we expand the problem details, we see a [Read More ...]

If you are using Windows 7 or Windows Vista, or Windows Server 2008, you should know the UAC (User Account Control), this is one of significant differences between Windows XP and the newer Windows System. “User Account Control (UAC) determines the privileges of a user. If you are a member of the Built-in Administrators group, [Read More ...]

© 2012 CodeEase.com Suffusion theme by Sayontan Sinha