FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister  MasterVB.NET
Visual Basic 2005 .NET Forum
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Windows Forms in XP with VS 2005
 
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Smart Device Application
View previous topic :: View next topic  
Message
Author
JoeEnos
Newbie
Joined: 11 Jul 2006
Posts: 21

PostPosted: Thu Jul 13, 2006 1:00 pm    
Post subject: Windows Forms in XP with VS 2005
Reply with quote

I finally found the answer to this problem. It turns out that by default, Visual Studio uses these old 2000 style controls. In order to update to the XP style controls, you just need to add the following line to your startup form prior to initializing the components:

System.Windows.Forms.Application.EnableVisualStyles();

This only needs to be run once, and it spills over to all other forms that will be opened.



 

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Smart Device Application All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Archieve

Powered by phpBB © 2001, 2002 phpBB Group, used in Visual Basic 2005 .NET Forum

| Visual Basic .NET Forum | Online Recipe Archiver | Shareware Freeware PAD | Lowongan Kerja | Kamus Online | Health Supply | Digital Camera Review |
Orang Paling Keren

RSS