By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,719 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,719 IT Pros & Developers. It's quick & easy.

Dialog look and feel

P: n/a
With VS2005 the look and feel of dialogs created with MFC and Windows Forms
is different. E.g. still of checkboxes, buttons, etc.

Is it possible to achieve the same look and feel with both MFC and Windows
Forms?

TIA,
KK
Dec 5 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Kevin" <ke***************@ntlworld.comschrieb:
With VS2005 the look and feel of dialogs created with MFC and Windows
Forms is different. E.g. still of checkboxes, buttons, etc.

Is it possible to achieve the same look and feel with both MFC and Windows
Forms?
What's the visual difference? Does one application use the classic style
and the other one the new Windows XP style?

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

Dec 5 '07 #2

P: n/a

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:uO**************@TK2MSFTNGP05.phx.gbl...
"Kevin" <ke***************@ntlworld.comschrieb:
>With VS2005 the look and feel of dialogs created with MFC and Windows
Forms is different. E.g. still of checkboxes, buttons, etc.

Is it possible to achieve the same look and feel with both MFC and
Windows Forms?

What's the visual difference? Does one application use the classic style
and the other one the new Windows XP style?
With the MFC dialog the buttons are squarer and darker grey. The radio
buttons and checkboxes are recessed. The Windows Forms dialogs has the
latest Office look, so rounder buttons and flat checkboxes.

Dec 6 '07 #3

P: n/a
Hi Kevin,

If you look at Program.cs there is a line in Main() called

Application.EnableVisualStyles();

If you comment this line or remove it xp style is gone, or at least for the
common controls. Not sure why you would want to though.

--
Happy Coding!
Morten Wennevik [C# MVP]
"Kevin" wrote:
>
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:uO**************@TK2MSFTNGP05.phx.gbl...
"Kevin" <ke***************@ntlworld.comschrieb:
With VS2005 the look and feel of dialogs created with MFC and Windows
Forms is different. E.g. still of checkboxes, buttons, etc.

Is it possible to achieve the same look and feel with both MFC and
Windows Forms?
What's the visual difference? Does one application use the classic style
and the other one the new Windows XP style?

With the MFC dialog the buttons are squarer and darker grey. The radio
buttons and checkboxes are recessed. The Windows Forms dialogs has the
latest Office look, so rounder buttons and flat checkboxes.

Dec 7 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.