Getting XP UI Style Back

  • Thread starter Thread starter thechaosengine
  • Start date Start date
T

thechaosengine

Hi all,

I'm making a windows app but I've noticed that the ui elements - in particular
the buttons - arent the normal rounded XP style I'm used to. I am developing
on an XP machine. All the applications running on my machine are using the
XP style but when using Visual Studio and running the application in debug
mode, the buttons appear in the old Windows 2000 style.

Can anyone tell me how to get the application to use the XP style I'm used
to? Any information on what governs the style that is used by applications
would also be very greatfully received.

Thanks to anyone who can help

Kindest Regards

tce
 
Add the following as the first lines in you sub main()
Application.EnableVisualStyles()
Application.DoEvents() 'this line needed to fix minor error in
EnableVisualStyles
 
thechaosengine said:
I'm making a windows app but I've noticed that the ui elements - in
particular the buttons - arent the normal rounded XP style I'm used to. I
am developing on an XP machine. All the applications running on my machine
are using the XP style but when using Visual Studio and running the
application in debug mode, the buttons appear in the old Windows 2000
style.

Enabling Windows XP Visual Styles for Windows Forms applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=xpvisualstyles&lang=en>
 
Back
Top