473,507 Members | 8,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to turn OFF visual styles

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
1 7174
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1458
by: ht990332 | last post by:
I'm writing applications in vc++ .net 2003. How do I give the applications visual styles on winxp without adding a ..manifest file?
0
1728
by: Anand | last post by:
Hi, I have done a sample windows application with controls looks resembling to Windows XP Visual Styles by using the guidelines http://msdn.microsoft.com/library/default.asp? url=/library/en-...
2
4812
by: Alvo von Cossel I | last post by:
hi, i have an app with a lot of stuff including an optios form. 1 of the options is disabling the xp visual styles. i know how to enable them but not how to disable them. has anyone got an...
18
2259
by: Egbert Nierop \(MVP for IIS\) | last post by:
When I build some add-ins for the management console using C++, the add-ins made by me show a Win2000 interface while the rest of the add-ins made by MS are using XP themes. What am I missing? ...
5
4768
by: MLM450 | last post by:
I want to use visual styles in my app, but it is causing a problem with a DLL I use. Is there a way to disable visual styles for that DLL? I do not have access to the code for the DLL. The DLL's...
3
2020
by: nkarnold | last post by:
My application seems to be ignoring Enable XP visual styles, which is ticked on in the application properties. the Toolbar and Menubar, which appear the nice looking shaded blue appear like that...
2
1113
by: Flash | last post by:
Hello, recently I was looking through the system properties and came accross system.visualstyles namespace. This appears to contain all of the visual style elements in xp and I was wondering if it...
1
1964
by: =?Utf-8?B?UmljaA==?= | last post by:
On my old workstation (development workstation) if I set Application/Enable XP visual styles - I was able to get/see the visual styles - like button borders highlighting when you run the mouse over...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.