Question : ProgressBar - VB.Net ( Windows Application )


I am  working on Export to Excel Sheet - Utility Tool.

When i export to excel sheet, it takes 2-3 mins ..! ( for some reasons .. i will do OPTIMIZATION - Later ")

Now i need to run a Progress Bar inorder to display - Export is under progress ..!

Answer : ProgressBar - VB.Net ( Windows Application )

If you don't really understand how a progressbar works, then you may want to start out by experimenting with it, to help you get a better understanding of it.

Why don't you try putting a new progressbar on a form, name it "testProgressBar", put a new button on the form, and then put this code in the new button's click event handler:

testProgressBar.Minimum = 0
testProgressBar.Maximum = 10000
testProgressBar.Value = 0

For i As Integer = 1 to 10000
    testProgressBar.Value += 1
    Application.DoEvents()
Next

Random Solutions  
 
programming4us programming4us