Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

Getting XP UI Style Back

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
thechaosengine - 01 Aug 2005 17:58 GMT
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/>


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.