WinForms FAQ - Framework

How come I don’t get to see the full call stack while debugging in VS2003?

In VS2003, debug info for unmanaged code is turned off by default. This is why you will not see the call stack including code in the System dlls. To enable debugging for unmanaged code go to your project properties dialog and turn on as shown in the image below:

Fig: Turning On Unmanaged code debugging

Permalink
What’s new in the 1.1 framework?

This MSDN article by Chris Sells provides a good introduction to the 1.1 framework:

http://msdn.microsoft.com/msdnmag/issues/03/03/WindowsForms/default.aspx

For a list of breaking changes in 1.1: http://www.gotdotnet.com/team/changeinfo/default.aspx

We will include more information here that is not covered in the above article. Please email any more info. you have to winformsfaq@syncfusion.com

Permalink
Is EnableVisualStyles method to support XP styles in my app broken?

Microsoft has confirmed that calling EnableVisualStyles in the main method resulting in some ImageList corruption is a bug. There however seems to be a workaround posted by Martin Robins in the newsgroup which worksaround this issue:

public virtual void Main() { 
Application.EnableVisualStyles(); 
// Calling DoEvents after the above method call seems to fix this issue:
Application.DoEvents(); 
Application.Run(new Form1()); 
}
Permalink