473,661 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable visual styles

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 solution to my problem?

--
Alvo von Cossel I of Germany
Nov 17 '05 #1
2 4818
Alvo von Cossel I wrote:
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 solution to my problem?

There is a bug in framework 1.1 where enablevisualsty les does not work
if you have an imagelist or any control that contains an imagelist (or
some such) IIRC.
To get around this, try

Application.Ena bleVisualStyles ();
Application.DoE vents();

This gets around it for me.

I hope this was what you are asking ;)
JB
Nov 17 '05 #2
hi,

thanks for the help but i wanted to disable the visual styles, not enable them

--
Alvo von Cossel I of Germany
"John B" wrote:
Alvo von Cossel I wrote:
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 solution to my problem?

There is a bug in framework 1.1 where enablevisualsty les does not work
if you have an imagelist or any control that contains an imagelist (or
some such) IIRC.
To get around this, try

Application.Ena bleVisualStyles ();
Application.DoE vents();

This gets around it for me.

I hope this was what you are asking ;)
JB

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
81516
by: Mark Johnson | last post by:
You have an, a, anchor with href link. Can you use a stylesheet to effectively disable the link, so that you can't click on it; that it will appear simply as text?
5
5913
by: Greg | last post by:
I am developing an application where I need to secure a workstation for periods of time. I can use BlockInput to stop users from task switching or messing with the keyboard, but I would like to disable Ctrl-Alt-Delete. It seems there seems to be only one real way I know about: Write a replacement Gina Driver to eat the keyboard events I dont want. Does anyone have a good template for this in Visual Basic .Net?
6
1462
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
1146
by: Alvo von Cossel I | last post by:
hi, i have an application with the visual styles disabled (i just haven't put application.enablevisualstyles in the Static Void main) however in my options menu for my application, you can enable them. what code do i need to disable them again when you click the button that says 'dont enable visual styles' in my form? also, how do i save the settings?
3
1777
by: Brian Henry | last post by:
here's something odd, maybe someone can explain it, when i turn on application.enablevisualstyles at application start before i do my application.run(context) command in the sub main, when the app context runs and I get my main form, the toolbar is now missing all its icons (24x24) the buttons are there just the icons are gone, also pretty much all image list icons are not displaying. as soon as i turn the enable visual styles off, they...
2
2373
by: Jeremy Clulow | last post by:
Hi, I've designed a site at http://www.welsh-kitchens.com When all styles are disabled it looks like this http://www.welsh-kitchens.com/index-nocss.shtml I've tried creating a printing Style Sheet by using "display:none" for various parts but the results have been dismal. I've decided I'd like
2
1117
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 is possible to change these, either using the way I found or another. When I tried to change one of the elements, I got an error saying that it was read-only. Any help or info would be appreciated, thanks
1
1970
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 them. But on my new workstation (development workstation) I can't get the visual styles to work. Matter of fact, the button controls appear raised (like in old VB6). I downloaded/Installed a bunch of updates for VS2005 after I got the new...
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8343
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8855
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7364
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6185
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
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 we have to send another system
2
1743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.