473,832 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the progressbar style

In other programming languages I've been able to easily change the style
of a progress bar between smooth and blocked. I find that is either
really hidden or impossible in .NET. Am I missing something?

I'm shocked that .NET doesn't have a style property for the progressbar
control!

--
- Mitchell Vincent
- kBilling - An easy and affordable billing solution
- http://www.k-billing.com
Nov 21 '05 #1
3 4796
"Mitchell Vincent" <mi************ **@gmail.com> schrieb:
In other programming languages I've been able to easily change the style
of a progress bar between smooth and blocked. I find that is either really
hidden or impossible in .NET. Am I missing something?
You can reimplement the ProgressBar control and specify 'PBS_SMOOTH'
('ProgressBar' is 'sealed', so you cannot extend it).

- or -

Microsoft's "recommendation ":

HOW TO: Create a Smooth ProgressBar in Visual Basic .NET
<URL:http://support.microso ft.com/?scid=kb;en-us;323088>
I'm shocked that .NET doesn't have a style property for the progressbar
control!


I agree.

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

Nov 21 '05 #2
i'll shoot you source code for this if you want. it's not hard to create at
all.
Nov 21 '05 #3
Mal
Here is a link to a code sample for a sweet progressbar, that fills
smoothly with gradient colors:
http://www.trackslinger.com/codelibrary/

Enjoy...

Nov 21 '05 #4

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

Similar topics

8
19639
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. pBar1.Minimum = 1; // Set Maximum to the total number of files to copy. pBar1.Maximum = 4; //filenames.Length;
2
3744
by: Randall Arnold | last post by:
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...
9
33807
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 i didnt see any property or method to do this so i was wondering if i was missing something or if il have to write my own. Thanks -- -iwdu15
6
30444
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 do the following: progressBar1.Style = ProgressBarStyle.Continuous; progressBar1.Go(); DoSomething(); progressBar1.Stop();
4
5326
by: Sin Jeong-hun | last post by:
Some system utilities such as Windows Backup on Windows Vista show RED progress bars when something went wrong. Is this possible in C# applications? As far as I know, the ForeColor property means nothing when visual style is enabled. I tried to search Google, but nothing came up with the keywords 'red progressbar vista'.
2
11130
by: =?Utf-8?B?QWFyb24=?= | last post by:
Since some controls such as the DataGridView take a long time to update themselves when performing certain tasks, I have added a StatusStrip with a ProgressBar on it. While I am updating the controls on the form, I want the ProgressBar to scroll in marquee mode. However, I cannot seem to get this to work. I set the StatusStripLabel to the text I want such as "Updating data..." and then set the ProgressBar's Style property to Marquee...
1
3918
by: Jassim Rahma | last post by:
how can I change the progressbar color and make it simple just like the old style progressbar in windows 98
0
1550
by: prathamesh.s.kulkarni | last post by:
I have a MDI Application. It has a simple menu. On clicking menu items, child forms open. Since, the loading of the form was taking quite sometime, I have separated the loading of data by using a background thread. Now, first the UI elements are loaded, the form is displayed and then the data is loaded. But, still the form (UI elements) take sometime to load and on the click of a menu item, the menu remains for sometime in a frozen state...
6
10712
by: JB | last post by:
Hi All, I have a Windows Form application that shows a "please wait" form while I query a database for various information. I display my form using Show, then run my DB query, then Close the form at the end. To make it look even nicer I placed a marquee style Progress Bar on my form. It works exactly the same way, but the marquee style progress bar
0
9795
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
9642
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
10498
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10540
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10212
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7753
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
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4421
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
3970
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.