How to turn OFF visual styles

S

sklett

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
 
G

Guest

sklett said:
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.

See if your executable has a manifest file, and if so, rename or delete it.
If your app name is MyApp.exe, the manifest file will be in the same folder
and have the name MyApp.exe.manifest.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top