theme and scheme

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
 
M

Mick Doherty

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()
 
G

Guest

I tried your suggestion but the running application still does not display
like it does in the ide.
 
P

Peter Wilson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top