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
Cathal Connolly [VB MVP] - 02 Aug 2005 00:40 GMT
Add the following as the first lines in you sub main()
Application.EnableVisualStyles()
Application.DoEvents() 'this line needed to fix minor error in
EnableVisualStyles
> Hi all,
>
[quoted text clipped - 13 lines]
>
> tce
Herfried K. Wagner [MVP] - 06 Aug 2005 18:05 GMT
"thechaosengine" <na> schrieb:
> 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>

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>