AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile
hi everyone, i have two problem frist, how to use Progress Bar. can you give me a example. second, i want to display a datagrid and a chart in a form. my database use sql 2000 server. do anybody know how to solve this problem? thanks!
I have a simple solution for using the Progress bar: (let's say you have a progress bar control declared as ProgressBar1) 1. set the minimum and maximum values for the progress bar (these will be the values that will determine how much of the progress bar is filled up) ProgressBar1.minimum = 0 ProgressBar.maximum = 100 2. set the value of the progress bar to show how much progress has been made: for index = 0 to 100 ProgressBar1.value = index end for That's just an example if you want to show the progress of a looping construct. You can apply this to any situation. Hope this helps...
to make a progressbar do like this 1-put a progressbar 2- put timer 3- double click on your form and write this code Timer1.Start() 4- double click on timer and write this code If (ProgressBar1.Value = 100) Then Timer1.Stop() MessageBox.Show("maxxx") Else ProgressBar1.Value += 2 End If press F5