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 ...]
There was a windows form application based on .NET 4.0 and Visual Studio 2010, it was working well on a PC which we developed it. when we move its debug folder which including generated executable files, it crashed (We use Windows 7): We expanded “Show problem details” button and saw the following information: Description: Stopped [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 ...]
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 ...]
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. The reason is that some Windows Form controls ignore the key press from the TAB key, RETURN key, ESC key, and arrow keys by [Read More ...]
We have a windows form project which used Microsoft Chart Control. The Axis X is DateTime type, Axis Y are double values. We need zoom in/out feature and scroll feature, so we have already the following initial code: chartAreaTrending.CursorX.Interval = 0; chartAreaTrending.CursorY.Interval = 0; chartAreaTrending.CursorX.IsUserSelectionEnabled = true; chartAreaTrending.CursorY.IsUserSelectionEnabled = true; chartAreaTrending.AxisX.ScaleView.Zoomable = true; chartAreaTrending.AxisY.ScaleView.Zoomable = [Read More ...]
When we ran a Windows Form program and after we closed it, we got a message windows below: “Windows detected that this program did not run correctly To try and fix the problem, Windows has applied compatibility settings to this program, Windows will use these settings the n3ext time you run the program If you [Read More ...]
“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. Create a custom renderer public class RedTextRenderer : _ System.Windows.Forms.ToolStripRenderer { protected override void _ OnRenderItemText(ToolStripItemTextRenderEventArgs e) { e.TextColor = Color.Red; e.TextFont = new Font("Helvetica", 7, FontStyle.Bold); base.OnRenderItemText(e); } } [Read More ...]
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. We never gotten this kind of compile error on Windows XP when we convert the solution from lower Visual Studio [Read More ...]
When you run your Windows Application, you might get an error: Font ‘Tahoma’ does not support style ‘Regular’. The reason is your Windows system lost Tahoma font, or other software that you installed changed this font using other versions The resolution is just find back Tahoma font, at least for Windows XP, you can download [Read More ...]