473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

ProgressBar in a listbox?


Does anyone know how I can add a progress bar into a listbox in C# or
VB.NET?

I want to basically show a list of files that are transferring (or
have some operation being performed on them simultaneously) and use
the progress bar to show ... well ... progress.

Any ideas? (Example code would be perfect.)
Nov 22 '05 #1
3 7140
"singhalvr" <si*******@charter.net> schrieb
Does anyone know how I can add a progress bar into a listbox in C# or
VB.NET?

I want to basically show a list of files that are transferring (or
have some operation being performed on them simultaneously) and use
the progress bar to show ... well ... progress.


Hi singhalvr,

you'll have to use an owner-drawn-listbox:
http://www.syncfusion.com/FAQ/WinFor...c87c.asp#q627q

An example of how to implement a progressbar on another control (in this
case a status bar) can be found here:
http://discuss.develop.com/archives/...NET&D=0&P=6846

It should be possible to "mix" these two examples together.

Cheers

Arne Janning
Nov 22 '05 #2
You could also just anchor the progress bar on the list control which would
give you a virtual effect of being owner drawn - not much programming
required in this case. In fact, many status bars i have seen do the same
thing instead of making the control owner drawn.

"Arne Janning" wrote:
"singhalvr" <si*******@charter.net> schrieb
Does anyone know how I can add a progress bar into a listbox in C# or
VB.NET?

I want to basically show a list of files that are transferring (or
have some operation being performed on them simultaneously) and use
the progress bar to show ... well ... progress.


Hi singhalvr,

you'll have to use an owner-drawn-listbox:
http://www.syncfusion.com/FAQ/WinFor...c87c.asp#q627q

An example of how to implement a progressbar on another control (in this
case a status bar) can be found here:
http://discuss.develop.com/archives/...NET&D=0&P=6846

It should be possible to "mix" these two examples together.

Cheers

Arne Janning

Nov 22 '05 #3
You could also just anchor the progress bar on the list control which would
give you a virtual effect of being owner drawn - not much programming
required in this case. In fact, many status bars i have seen do the same
thing instead of making the control owner drawn.

"Arne Janning" wrote:
"singhalvr" <si*******@charter.net> schrieb
Does anyone know how I can add a progress bar into a listbox in C# or
VB.NET?

I want to basically show a list of files that are transferring (or
have some operation being performed on them simultaneously) and use
the progress bar to show ... well ... progress.


Hi singhalvr,

you'll have to use an owner-drawn-listbox:
http://www.syncfusion.com/FAQ/WinFor...c87c.asp#q627q

An example of how to implement a progressbar on another control (in this
case a status bar) can be found here:
http://discuss.develop.com/archives/...NET&D=0&P=6846

It should be possible to "mix" these two examples together.

Cheers

Arne Janning

Nov 22 '05 #4

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

Similar topics

1
by: Maka Sili | last post by:
Using ProgressBar.Enabled = false does not dim the progress bar. There must be a way. I hope somebody could guide me. Thanks.
2
by: singhalvr | last post by:
Does anyone know how I can add a progress bar into a listbox in C# or VB.NET? I want to basically show a list of files that are transferring (or have some operation being performed on them...
2
by: jez123456 | last post by:
Hi, thanks for the previous advice on progressbars with showing the percentage. I would now like to create a less clunky version. I.e at the moment my progressbar shows 7 separate steps. Some...
8
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
by: Mehr H | last post by:
I've been trying to figure out how i can embed a Windows.Forms.ProgressBar in my webform (aspx) file. I have tried putting a Windows.Forms.ProgressBar as public on a regular winform designer form...
3
by: Mitchell Vincent | last post by:
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...
1
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...
2
by: purkka | last post by:
Hi I suppose, that my problem is of interest to many readers: While long time task (i.e reading a remote Pc's WMI), a user should see either the progressbar or "a DIV history log" such as...
2
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...
4
by: sivamoorthy | last post by:
how to use a progressbar in a one cpp file but defined in another header file. the function in which i am using is a static member function. how to use the progressbar inside the function ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...
0
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...
0
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...

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.