So you want the user to enter the max value of the progress bar, and then let
the progress bar run from 0 to the max value? What type of operation will it
be, or is it just for testing.
Create a simple for / next loop for testing. Define the operation as a Sub,
and execute the sub by using a thread.
Sub RunProgress()
dim myCounter as long
progressBar.Max = clng(txtMaxValue.text)
for myCounter = 0 to clng(txtMaxValue.text)
progressBar.value = myCounter
next
End Sub
Call it like this
.....
dim th as new thread(AddressOff RunProcess)
th.start
....
"Viet" wrote:
I am trying to code a program that inputs a number (the max value) for a
progress bar which will execute as a separate thread. I know how to create a
progress bar as a separate thread but I am having difficulty trying to
create the user defined loop for the progress bar. Any help is appreciated!
Thanks
Jonathan