How to Make a Loading Bar in VB.NET

Written by keith perry
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Make a Loading Bar in VB.NET
Use the load bar in your VB.NET application to keep users informed. ( Images)

When developing any application, communicating timely information to the user is a requirement. When an event or processing takes time, a user may become impatient and stop the program. A progress bar, or load bar, provides information to the user on what is occurring. Common uses for the load bar include intense computations, download of network data or writing a file. The progress bar control is provided with the .NET framework from Microsoft.

Skill level:


  1. 1

    Open Visual Basic from the "Start" icon on the Windows taskbar.

  2. 2

    Press the "Control" and "N" keys to open a new project window. Select "Windows Forms Application" and click "OK."

  3. 3

    Click the "ProgressBar" icon located in the ToolBox window. Draw a progress bar in the Form 1 window.

  4. 4

    Double-click the "Button" icon located in the ToolBox window to display a button in the Form 1 window.

  5. 5

    Double-click "Button1" to open the code window. Insert the following code:

    Dim x As Integer

        For x = 1 To 100
            ProgressBar1.Value = x
            x = x + 1
  6. 6

    Press the "F5" key to start the application in debug mode. Click on "Button1" to execute the code looping from 1 to 100. The progress bar displays the progress of the loop.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.