There were not only one time, and there were lots of programmer who used Windows Form FlowLayoutPanel control got the memory leak issues. In our case, we used FlowLayoutPanel control wrapped multiple user controls which include PictureBox controls and other controls. we need constantly clear the FlowLayoutPanel and add new user controls. We found the [Read More ...]

We often need to implement events in our own class. About how to implement events, Microsoft provides tutorials such as this one. About the concepts of Event and Delegate, please read Microsoft site here. I. Traditional Method : Microsoft provides tutorials seems still in .NET 1.1 way even the web page is showing for .NET [Read More ...]

In some cases you can use nesting Try…Catch exception handling: For example: A division-by-zero error try { try { Z = X / Y; } catch (DivideByZeroException ex) { Z = 0; } //… (other code) } catch (Exception ex) { //exception processing }

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 ...]

© 2013 CodeEase.com Suffusion theme by Sayontan Sinha