Re: Visual styles an .NET Framework 2.0 by tlkerns
tlkerns
Fri Jun 09 15:03:01 CDT 2006
Yes, but instead of coding it manually, you can set it in the project
property sheet. Just right click your project and select Properties from the
context menu. "Enable XP visual styles" is on the Application tab.
Tony
"Emmanuel" wrote:
> Thanks tlkerns.
>
> The call to EnableVisualStyles method is still needed ?
>
> Emmanuel
>
> "tlkerns" <tlkerns@discussions.microsoft.com> wrote in message
> news:6B9D292B-A2FA-4A41-A2C9-F66440AA31E8@microsoft.com...
> > From the VS.net 2005 help:
> >
> > "Prior to the .NET Framework 2.0, the FlatStyle property of some controls,
> > such as controls that derive from ButtonBase, had to be set to
> > FlatStyle.System in order for the controls to be drawn with visual styles.
> > In
> > applications written with the .NET Framework 2.0, this is no longer
> > necessary."
> >
> > Tony
> >
> > "Emmanuel" wrote:
> >
> >> In .NET Framework 1.1 in order to enable visual styles we had to code:
> >>
> >> Application.EnableVisualStyles();
> >> Application.DoEvents();
> >>
> >> before anything visual, and then set the FlatStyle attribute of the
> >> controls
> >> to FlatStyle.System.
> >>
> >> Is all these needed on version 2.0 in order to achieve the same behaviour
> >> (XP like controls) ?
> >>
> >> Thanks
> >> Emmanuel
> >>
> >>
> >>
>
>
>