Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using progress bar

Status
Not open for further replies.

singoi

Technical User
Mar 1, 2005
46
DE
Hallo friends,

I am new to VB6. i have created a programm which is successfull. now the problem is i want to keep a Progressbar where i can kow that the programm is still running.

the running process is taking 5 minutes.

how to write a programm for this 5 minutes of running time.

what r the controls i am supposed to use.

Please i need help in this friends,

Thanks in Advance.

Singoi
 
To get the progress bar control, in VB menu:

Project - Components...

(you can also Right-Click on a toolbox to get there)

select
Microsoft Windows Common Controls 5.0

You will get a few new controls on your toolbox, one of which is a Progress Bar.

Have fun

---- Andy
 
Hello,

I am new to VB6 - It is a suggestion that you should learn vb.NET 2k3 or 2k5, if there is no problem (money, your company etc).

the running process is taking 5 minutes - How are you so sure on that time? Isn't it depending on the host CPU? Or the whole process is handled by e.g. timer controls?

what r the controls i am supposed to use - If you know where it stops then a pbar is good...

Dim i as integer
progressbar1.minvalue = 0
progressbar1.maxvalue = 10000
For i = 0 to 10000
progressbar1.value = i
next i

... and accurate. If you do not know, just inform the user the the pc is running and not stuck. To do this use a simple gif animation...

processrunningGif.visible = true
' your process
DoEvents()
processrunningGif.visible = false


(The progressbar that you see while windows start, is included in Visual Studio .NET 2005; "marquee" style. This is not a reason to buy it.. just mentioned. You can think of creating your own "progress bar" control.)
Hope i helped.
 
TipGiver,
>It is a suggestion that you should learn vb.NET 2k3 or 2k5,

Don't praise the machine...

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top