Browse by Tags
All Tags »
Windows Forms (
RSS)
Version 1.0 of the .NET Framework introduced System.Drawing.Region 's Union method , designed to union two regions or several other types into a region. A bug, first reported in 2001, caused unexpected behavior. The method's output was determined as unreliable...
A little known, as far as I can tell from asking around, yet extremely useful property in the Windows Forms designer's property grid is GenerateMember . Defaulting to true , it decides whether a control/component gets declared as a field on the form ...
A colleague was baffled by having Control.Invoke (when called from a different thread) throw an ArgumentException at him and asked if I knew what was happening. Opening the stack trace, I found that the exception originated from Control.MarshaledInvoke...
The following code illustrates a great use for anonymous methods. public class MyContainerControl : Control { private class MySpecializedControl : Control { protected virtual void OnMyEvent(EventArgs e) { if ( this .MyEvent != null ) this .MyEvent( this...
Today I discovered that the Windows Forms Designer in Visual Studio 2005 doesn't know how to handle generics. For instance, the following example: private class MyControl<T> : System.Windows.Forms.Control { } could not be dropped in a Windows Forms...
I believe I am not the only person in the world who likes to work only with maximized windows and Alt+Tab - there are quite a lot of advantages to that approach, mainly the fact that you can pull your mouse to the upper-right corner of the screen and...
More Posts