By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,997 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,997 IT Pros & Developers. It's quick & easy.

How to turn OFF visual styles

P: n/a
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
Aug 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"sklett" wrote:
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.

--
Timm Martin
Mini-Tools
..NET Components and Windows Software
http://www.mini-tools.com

Aug 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.