Results 1 to 3 of 3

Thread: How can I place a progressbar inside a panel of a statusbar

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    I need to place a progressbar inside a panel of a statusbar....
    How do I do that ???

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Put this on Paint event of the form:

    Code:
    Private Sub Form_Paint()
        Dim sngBorderWidth As Single
        
        'Determine Border Width - May need to be adjusted if a different border style is used
        sngBorderWidth = (Width - ScaleWidth) / 4
    
        ProgressBar1.Move StatusBar1.Panels(1).Left, StatusBar1.Top + sngBorderWidth, StatusBar1.Panels(1).Width, StatusBar1.Height - sngBorderWidth
    End Sub
    Just substitute the StatusBar1 and ProgressBar1 with the appropriate names.
    Also, subsitute the Panel number to the appropriate one.

    Regards,

    ------------------

    Serge

    Software Developer
    Serge_Dymkov@vertexinc.com
    Access8484@aol.com
    ICQ#: 51055819


  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    Works like a charm...

    Help me out here.... I cdon't get the sngBorderWidth part....

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