Re: VS 2005: Gradient background colour lost after going from beta 2 -
- From: "stretch" <stretchyarmstrong@xxxxxxxxxxx>
- Date: 24 Nov 2005 01:08:59 -0800
Hi Alexey,
I do call that in the main method - in fact the XP-style visuals are
still there. Its just the background coulour thats changed. I was
hoping there is an easy way to get this feature back rather than
overriding the Paint event everywhere.
Regards,
Steve
Alexey Borzenkov (donotspam) wrote:
> Make sure that you are calling the Application.EnableVisualStyles(); method.
> Look at the "main" method in Program.cs.
>
> static class Program
> {
> [STAThread]
> static void Main()
> {
> Application.EnableVisualStyles();
> Application.Run(new MainForm());
> }
> }
>
> Alexey Borzenkov
>
> "stretch" wrote:
>
> > Hi,
> >
> > I have been playing round with the beta of VS 2005 and built a simple
> > winforms app. I installed the released version of VS 2005 (after
> > following the full uninstall procedures given on MS site for beta 2)
> > and one small but annoying issue has come up - the default backgroud
> > colour of my controls has gone back to the standard ugly khaki-grey
> > colour. While using the beta, it was a light khaki with a gradient
> > which gave the control a nice professional look.
> >
> > I know this feature can be replicated in code, but I was under the
> > impression this style would be the default for controls in the .NET 2.0
> > framework.
> >
> > Is there some way to force my app to use that colour scheme by default?
> > It was happening in the VS 2005 beta (I cant remember the version of
> > the .NET framework i was using, but it was also a beta) so I am at a
> > loss why Microsoft took this feature out for the release.
> >
> > It makes tab pages look like crap - I am hoping this is simply a
> > configuration issue.
> >
> > Regards,
> > Steve
> >
> >
.
- Follow-Ups:
- References:
- Prev by Date: Re: Will undisposed modally shown forms cause memory leaks or not?
- Next by Date: OnThreadException misses exceptions
- Previous by thread: VS 2005: Gradient background colour lost after going from beta 2 -> release
- Next by thread: Re: VS 2005: Gradient background colour lost after going from beta 2 -
- Index(es):
Relevant Pages
|