CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 1999
    Location
    LA, USA
    Posts
    23

    How to display progress bar

    In my VB program, I am executing another program and I want to display a progress bar while this program is executing its routines. So, how do you display a progress bar like the one which appears when copying a file or doing a setup.


  2. #2
    Join Date
    Jun 1999
    Location
    virginia
    Posts
    16

    Re: How to display progress bar

    If you are using VB 5 or 6 right click on the controls form and select components. Select Microsoft Windows Common Controls. This will put the control on the controls form. Put in on your form. Set the Min property to you lowest count and Max to your higest count. Then as you go through the loading increment the count and put that value in. ie.
    ProgressBar1.Min=0
    ProgressBar1.Max=100
    for x=0 to 100
    ProgressBar1.Value = x
    next
    Hope this is what you wanted ;-)



  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How to display progress bar

    If you want a progress bar and some animated windows then take a look at :

    http://codeguru.developer.com/vb/articles/1638.shtml

    The code can be simply dropped into your project (providing you have the correct components / references setup).


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured