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 / February 2007

Tip: Looking for answers? Try searching our database.

Get Dialog to look like designer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oldman - 20 Feb 2007 12:50 GMT
In the windows forms designer my buttons have rounded edges and things in
general look good.  However, when I  run the application the windows form has
the old looking square buttons and the text and other controls don't look
like they do in the designer.  Why?
Herfried K. Wagner [MVP] - 20 Feb 2007 13:09 GMT
"Oldman" <Oldman@discussions.microsoft.com> schrieb:
> In the windows forms designer my buttons have rounded edges and things in
> general look good.  However, when I  run the application the windows form
> has
> the old looking square buttons and the text and other controls don't look
> like they do in the designer.  Why?

Which version of Windows and VS are you using?  Are visual styles enabled?

Signature

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

Oldman - 20 Feb 2007 13:40 GMT
Windows XP, VS 2005.  Not sure what you mean by Visual Styles being enabled?

> "Oldman" <Oldman@discussions.microsoft.com> schrieb:
> > In the windows forms designer my buttons have rounded edges and things in
[quoted text clipped - 4 lines]
>
> Which version of Windows and VS are you using?  Are visual styles enabled?
Herfried K. Wagner [MVP] - 20 Feb 2007 15:38 GMT
"Oldman" <Oldman@discussions.microsoft.com> schrieb:
> Windows XP, VS 2005.  Not sure what you mean by Visual Styles being
> enabled?

The typical Windows XP look (rounded buttons, colored tab control headers,
...).  If you are using VB 2005, check out the option to enable visual
styles in the project properties ("My Project").

Signature

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

Oldman - 20 Feb 2007 15:47 GMT
I am using C# and I do not see any setting like that in the project properties.

> "Oldman" <Oldman@discussions.microsoft.com> schrieb:
> > Windows XP, VS 2005.  Not sure what you mean by Visual Styles being
[quoted text clipped - 3 lines]
> ....).  If you are using VB 2005, check out the option to enable visual
> styles in the project properties ("My Project").
Ciaran O''Donnell - 20 Feb 2007 16:05 GMT
In your main method that starts the app. Ensure there is a call to
Application.EnableVisualStyles();

Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> I am using C# and I do not see any setting like that in the project properties.
>
[quoted text clipped - 5 lines]
> > ....).  If you are using VB 2005, check out the option to enable visual
> > styles in the project properties ("My Project").
Oldman - 20 Feb 2007 19:00 GMT
Thank you that did it.

> In your main method that starts the app. Ensure there is a call to
> Application.EnableVisualStyles();
[quoted text clipped - 8 lines]
> > > ....).  If you are using VB 2005, check out the option to enable visual
> > > styles in the project properties ("My Project").

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.