When developing any application, timely communication of information to users is a requirement. When an event or processing takes time, a user can get impatient and shut down the program. A progress bar, or the loading bar, provides information to the user about what is happening. Common uses for the load bar include heavy calculations, downloading network data, or writing a file. Progress bar control comes with the framework. NET from Microsoft.
Instructions
- Open Visual Basic via the “Start” icon on the Windows taskbar
- Press the “N” “control” keys and open a new project window. Select “Windows Forms Application” and click “OK”
- Click on the “ProgressBar” icon located in the tool window. Draw a progress bar in the Form1 window
- Double-click the “Button” icon located in the tool window to display a button in the Form1 window
- double click on “Button1” to open the code window. Insert the following code:
- Dim x As Integer
- Per x = 1 To 100