You have it switched around. The process that takes long should be the new thread (background process). This way the form stays active and you can press the cancel button.
Thanks for the info. Found what I wanted using threading.
Private t As System.Threading.Thread
t = New System.Threading.Thread(AddressOf Me.BackgroundProcess)
The BackgroundProcess runs the StoredProcedure while the application continues to control the Bouncing progress bar. Once the thread...
I am devolping a windows form application which connects to a database in SQL Server 2000.
In this form I have a Bouncing Progress Bar which I want to use whenever the program is searching for data. The application uses a stored procedure that takes awhile to return a value. During the search...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.