How to use Progress Bar Tool With C# Windows Application

Progress Bar tool is the one of the basic tool which we use in desktop application to make it more professional. Basic purpose of Progress Bar is to show that the Application is in working form not hanged.

pb

Requirement to build that Progress Bar application are following.

  • Operating System : Windows XP, Windows 7 , Vista
  • Platform :  .Net 2.0 or greater
  • IDE : Visual Studio
  • Language : Csharp

Now Follow the following steps :

  1. Create New Project on Visual Studio
  2. Select language C#
  3. Now Select the Windows Application
  4. Now Select the Progress Bar Tool from tool box and drag it on the form.2
  5. Now you have to choose the event on which progress bar work. in this figure you can see many event of progress bar but you can apply it on any where u want to run the progress bar.3
  6. Select any event go into its code by double clicking.
  7. write the following code progressbar1.value=x;    
  8. x is a integer variable between 0 to 100
  9. Increment in the value of x will increment the bar.    
  10. For testing you can check it by using the loop.

            for (int x = 0; x <= 100; x++)
               progressBar1.Value = x;

        4

suggestions are welcome with the heart. So please lets us know if found any problem while your are trying it.

for more basic tutorials check the tutorials tab.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger