Re: VS 2005: Gradient background colour lost after going from beta 2 -

Tech-Archive recommends: Speed Up your PC by fixing your registry



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
> >
> >

.



Relevant Pages

  • Re: Disable third party extensions
    ... No, its a feature of Service Pack 2, which is currently in beta testing. ... install it at your own risk. ... MS-MVP Windows Media Center\Windows Powered Smart Display ...
    (microsoft.public.windowsxp.security_admin)
  • Re: SW2006 file format
    ... have your ever noticed how the file formats change in different Beta ... each year it gets better with less and less conversion errors. ... >> I agree that some feature types cannot import/export due to new feature ... >> their own file structure for translations. ...
    (comp.cad.solidworks)
  • Re: VS 2005: Gradient background colour lost after going from beta 2 -
    ... For some reason this property does not need to be set in beta 2. ... >> Alexey Borzenkov ... >>> I know this feature can be replicated in code, ... >>> Is there some way to force my app to use that colour scheme by default? ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: ISA2004 und die Bandbreite
    ... > Beta habe und wenn ich Sie hätte, dann darf ich niemandem was dazu sagen, ... des OP war, ob der ISA dieses Feature haben wird, evtl. ... > ein bestimmtes Feature im Produkt enthalten sein wird oder nicht. ...
    (microsoft.public.de.german.isaserver)