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

Re: Dialog look and feel by Herfried

Herfried
Wed Dec 05 12:05:35 PST 2007

"Kevin" <kevinrwhiteNOSPAM@ntlworld.com> schrieb:
> 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/>


Re: Dialog look and feel by Kevin

Kevin
Thu Dec 06 09:29:49 PST 2007


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uOby203NIHA.4272@TK2MSFTNGP05.phx.gbl...
> "Kevin" <kevinrwhiteNOSPAM@ntlworld.com> schrieb:
>> 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.




Re: Dialog look and feel by MortenWennevik

MortenWennevik
Thu Dec 06 23:04:00 PST 2007

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]" <hirf-spam-me-here@gmx.at> wrote in message
> news:uOby203NIHA.4272@TK2MSFTNGP05.phx.gbl...
> > "Kevin" <kevinrwhiteNOSPAM@ntlworld.com> schrieb:
> >> 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.
>
>
>
>