theme and scheme

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My XP desktop theme is set to "Windows XP (Modified)" and the "Appearance" is
set as:
Windows and buttons: Windows XP style
Color scheme: Silver

This shows correctly in my .Net 2005 Beta 1 IDE but when I run the
application it seems to revert back to a 'classic' style.

Any ideas how to set the running app to display as it does in the IDE?

Paul
 
Add Application.EnableVisualStyles() to your sub main(). Not sure if the
toolbar, TabControl etc... bugs have been fixed so you may also need to add
Application.DoEvents()
 
I tried your suggestion but the running application still does not display
like it does in the ide.
 
Paul said:
My XP desktop theme is set to "Windows XP (Modified)" and the "Appearance" is
set as:
Windows and buttons: Windows XP style
Color scheme: Silver

This shows correctly in my .Net 2005 Beta 1 IDE but when I run the
application it seems to revert back to a 'classic' style.

Any ideas how to set the running app to display as it does in the IDE?

Paul
Beware EnableVisualStyles()! I've just spent two days tracking down a
nasty Interop.SEHException bug raised after closing a modal dialog.
Removing the call to EnableVisualStyles() cured the bug.
..Net 1.1 SP 1 Win2003 Server.

YMMD.
 
Back
Top