Hi all
I've got a From application that shows all controls in the XP style at design time (silver schema), but in Win2k style (all gray) at run time. I compared all the properties to another application that shows in XP style at run time, but can't find any difference.
Any idea what I'm doing wrong?
Thanks in advance for a reply
Daniel
DanielPosted Oct 28, 2007, 3:09 AM
Hi Scott
Thanks for your reply. That one line, missing, solved the problem.
Daniel
Scott LyslePosted Oct 27, 2007, 10:03 PM
If this is C#, check the program file (Program.cs) and find this line:
Application
.EnableVisualStyles();If is not there or is not executing (set a break point on it and run it), alter the code to make sure that it does and see if that does not resolve the issue.
If it is in VB, find the same setting by looking in the Application.Designer.vb file and locating this line under sub new (this is in My Project->Application.myapp->Application.Designer.vb):
Me
.EnableVisualStyles = true