473,503 Members | 1,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

overriding XP styles in ProgressBar

I've written an app in VB.NET 2005 Beta that monitors temperature of several
devices. I am using the ProgressBar for visual indication of temperature;
all readings in expected range cause the bar to be blue continuous and when
that threshold is exceeded the bar turns red continuous.

This worked fine in Windows 2000. However, when I bring this into Windows
XP, visual styles override my ProgressBar color and style settings. I only
get a green segmented indicator regardless of what my code says.

I want the XP style to dictate appearance of other controls, just not the
ProgressBar. Is there any way to override styles on just that component?
Nov 21 '05 #1
2 3716
"Randall Arnold" <Ra***********@discussions.microsoft.com> schrieb:
I want the XP style to dictate appearance of other controls, just not the
ProgressBar. Is there any way to override styles on just that component?


Disabling Visual Styles for a certain window:

<URL:http://www.google.to/groups?selm=u6R%23iOAoDHA.2776%40tk2msftngp13.phx. gbl>

How To Create a Smooth ProgressBar in Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;323088>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Beautiful! Worked perfectly Herfried, many thanks!

Randall

"Herfried K. Wagner [MVP]" wrote:
"Randall Arnold" <Ra***********@discussions.microsoft.com> schrieb:
I want the XP style to dictate appearance of other controls, just not the
ProgressBar. Is there any way to override styles on just that component?


Disabling Visual Styles for a certain window:

<URL:http://www.google.to/groups?selm=u6R%23iOAoDHA.2776%40tk2msftngp13.phx. gbl>

How To Create a Smooth ProgressBar in Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;323088>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

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

Similar topics

2
1928
by: Sergey Ilinsky | last post by:
How can i override all the styles being cascaded applied to some HTML element? For example: I have a stylesheet where DIV styles are described DIV { padding: 10; margin: 10; }
3
2565
by: Michael J. Hudson | last post by:
I'm not sure what good attaching a stylesheet to a Microsoft Word document does. When you save the document as an HTML file, Word throws in all of its style and font settings into the HTML file...
8
19582
by: needin4mation | last post by:
Please consider: foreach (ListViewItem item in listViewFiles.Items) { // Display the ProgressBar control. pBar1.Visible = true; // Set Minimum to 1 to represent the first file being copied....
1
696
by: nobody | last post by:
Hi I'm currently developing a Windows application. At the start of the application I load several tables into datatables in a dataset. I also use a progressbar to show the user how much percent...
3
1803
by: Iain | last post by:
I'm writing a server control which is a navigation bar. My prototype uses id based styles to control the layout and dynamics. Is there any way I can override asp.net's processing of the ID so...
9
33749
by: iwdu15 | last post by:
hi, is there any way (vb.net 2003 or 2005) to change the progress bar color from blue to any other system color? im trying to change between 3 colors depending on a variable in my app. unfortunatly...
1
3117
by: sonicsoul | last post by:
Hi, i wanted to define default global styles that would be used by 90% of controls. I would like to differentiate input text controls from input button controls. is there a way to specify this in...
6
30396
by: randy1200 | last post by:
I've been sucessful in using the Progress bar when I can calculate the percent complete. Now I want to use it when I have no way to calculate the amount of time to completion. Basically, I want to...
5
8087
by: Zytan | last post by:
I am trying to change the colors of the ProgressBar control, using ForeColor and BackColor, but this doesn't do anything. Does anyone know why? I wonder if it has anything to do with Windows...
0
7203
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
7281
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
7462
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
5014
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
4675
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
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...

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.