Get Dialog to look like designer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Oldman said:
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?
 
Oldman said:
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").
 
In your main method that starts the app. Ensure there is a call to
Application.EnableVisualStyles();
 

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

Back
Top