How to turn OFF visual styles
- From: "sklett" <s@xxxxx>
- Date: Fri, 11 Aug 2006 14:49:58 -0700
Hi,
I'm not SURE if Visual Styles is what I'm delaing with, but there is my
situation. On computer A which I have chosen "Classic Windows" as my
"Theme" my application appears the way I want it to. That is my progress
bars are solid when I tell them to be, my tool strips aren't blue, etc.
On my other machine which has the default XP look or "Theme" my app's
controls look different. My Progress bar is green bars, no matter what
color I set it to, my toolbars are blue, etc.
I've done some searching and it seems there are many ways to enable visual
styles, but I haven't found a way to disable them. I'm sure it's obvious,
but I can't find it.
I found this code;
Application.EnableVisualStyles();
VisualizerType = typeof(WinFormsVisualizer);
In the constructor of 'WindowsFormsApplication' which is the base
application class for my Composite Application Block app. I commented out
that line and they are still enabled.
Thanks for any help on this.
-Steve
.
- Prev by Date: Re: Dumb if question
- Next by Date: Max number of cursors opened exceeded
- Previous by thread: Re: Looking for Enterprise Grade Forum & Blog software package in C#
- Next by thread: Max number of cursors opened exceeded
- Index(es):