Getting XP UI Style Back

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
 
C

Cathal Connolly [VB MVP]

Add the following as the first lines in you sub main()
Application.EnableVisualStyles()
Application.DoEvents() 'this line needed to fix minor error in
EnableVisualStyles
 
H

Herfried K. Wagner [MVP]

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>
 

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