CheckBox Control Acts as Toggle Button
We needed to use common Windows Forms control to show a simple toggle style small text box. We firstly wanted to use Textbox control, but later we found Textbox control is not good for toggling.
How to disable Progress bar’s animation in .NET
The Windows Forms progress bar control comes with re-draw bar function by default, you will see the drawing process from left to right when you have one or multiple progress bar controls on your screen.
Windows Forms Listview Control Columns Header not Shown
When you use Windows Form Listview control, you will see a strange problem: you added columns, but the columns can not showing up in the designer panel in Visual Studio.
WPF and Windows Form Integration Application Localization
We have a Windows From application to load WPF modules, due to Microsoft programming guide, they called this kind of application as WPF and Windows Form integration application.
A Scada System Desktop Client
This is a client of a Scada system. It is a WPF windows application (built in 2014).
Conspec Windows Primary System S950 Part 1
Windows Primary System is a Coal Mine gas detection device control system which provided Conspec Controls.
Windows Form FlowLayoutPanel Memory Leak ?
There were not only one time, and there were lots of programmer who used Windows Form FlowLayoutPanel control got the memory leak issues.
Windows Form Application Stopped Working Due to Problem Event Name CLR20r3
There was a windows forms application based on .NET 4.0 and Visual Studio 2010, it was working well on a PC which we developed it on, but after we moved its debug folder that includes generated executable files, it crashed (We used Windows 7):
ConfigurationManager in Windows Form using Visual Studio 2010
When you create a new Windows Forms application in Visual Studio 2010, and if you want to do something related config file, normally you will use ConfigurationManager namespace, for example:
Custom Microsoft Chart Control Zoom Reset Button
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 zoom reset buttons.
Force Windows Forms Application to Run As Administrator on Windows 7
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.
Form.DialogResult Does Not Call Close Method Automatically
When we use Form.DialogResult in our Windows Form project, we should know it just return a DialogResult, it does NOT call a Close method to close the form automatically. Even you click the Close icon in the top-right corner of the form to close the form.
Arrow keys can not be captured in KeyDown event ?
In Windows Forms, If you write a KeyDown event method for some keys, such as arrow keys, you might find it doesn't work, but for other keys like A,B,C,D… it work.
Scrolling Stuck in Microsoft Chart Control
We have a windows form project which used Microsoft Chart Control. The Axis X is DateTime type, Axis Y are double values.
Custom Renderer for ToolStrip Control
“You can achieve completely custom appearance and behavior by setting either the ToolStrip.Renderer property or the ToolStripManager.Renderer property to a custom renderer.” – From Microsoft.
Object reference not set to an instance of an object in resx resource file
We have a Windows Forms solution which includes multiple sub projects, and since long time, we used Visual Studio 2005, and then 2008, now we are using Visual Studio 2010 to develop this solution.
Retrieving the COM class factory for component with CLSID
We have a C# application which built in Windows XP using Visual Studio 2010, when we install this application to a 64-bit Windows 7 PC, we got the following error message in a popup windows:
Handle Keyboard Input at the Form Level and Control Level
When you handle keyboard input in Windows Form, you have to control them in at least two level: Form level and Control level.
ComboBox in Windows Form using KeyValuePairs
The ComboBox in Windows Form is not like the same control in Web Form, it can not insert a Key and Value pair directly.
ConfigurationManager can not be found in .NET 2.0 ?
When we added something such as database Connection String in App.config file in .Net 2.0, we need to use the following 2 ways to get Connection String:
Display image using PictureBox and ImageList in C# ( Windows Form )
The regular way to display image in a Windows Form is using PictureBox.
How to align controls in TableLayoutPanel ?
There is no direct alignment property for TableLayoutPanel. So lots of programmer have similar question: How to align the controls in TableLayoutPanel ?