ProgressBar in a listbox?

S

singhalvr

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.)
 
A

Arne Janning

singhalvr said:
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/WinForms/FAQ_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/wa.exe?A2=ind0110D&L=DOTNET&D=0&P=6846

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

Cheers

Arne Janning
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top