I need some help getting the progress bar to work in vb.net net i saw some sample code on the net but i must be doing somting wrong cause it's not working.
I need some help getting the progress bar to work in vb.net net i saw some sample code on the net but i must be doing somting wrong cause it's not working.
Easy.
- Set the maximum value of the progressbar:
Code:ProgressBar1.Maximum = 100- Set the number of points the progressbar should step by each time an operation is complete:
Code:ProgressBar1.Step = 1- In your loop operation that completes the process, perform a step operation each time the process is complete for each loop:
Code:For x = 0 To n 'Do operation ProgressBar1.PerformStep() End For- Reset the progress bar when the loop is complete:
Code:ProgressBar1.Value = 0
So your whole code should look something like this:
It's that simple.Code:ProgressBar1.Maximum = 100 ProgressBar1.Step = 1 For x = 0 To n ' ' 'Insert your statements here... ' ' ProgressBar1.PerformStep() End For ProgressBar1.Value = 0
whats up Xenocrates i could'nt have put it much better, but i thik i getting extremly rusty on my java have'nt done any in almost 2 years fully .net i think i prob lost my touch you have any good tutorials?? one that helps me to create a simple address book would be nice since that would remind me of the whole jdbc connections and prob will allow me to touch a lil of everything
Dang... I had such a resource. Not sure where to dig it up now. I was using something like that when I was @ UTECH. In fact, I believe I got a project to build something similar to that in Java. But alas, I know not where to find such a thing right now.
In fact, your best bet is to use the MSDN library. The articles in the TechNET library are an excellent way to learn the language.
Explore my mind @ http://xenlogic.wordpress.com