Results 1 to 3 of 3

Thread: Add a ProgressBar without the Common Controls component

  1. #1
    Frenzied Member
    Join Date
    Nov 05
    Posts
    1,808

    Add a ProgressBar without the Common Controls component

    With this code you can add a ProgressBar to your application without having to use the Microsoft Windows Common Controls 5.0 or 6.0 component.

    Add the module to your project. Then add a label to your form, name it lblProgBar and remove the caption.

    vb Code:
    1. Private Sub Form_Load()
    2.     PBarLoad 1, Me.hWnd, lblProgBar.Left \ Screen.TwipsPerPixelX, lblProgBar.Top \ Screen.TwipsPerPixelY, lblProgBar.Width \ Screen.TwipsPerPixelX, lblProgBar.Height \ Screen.TwipsPerPixelY
    3.     PBarSetRange 1, 0, 100
    4.     PBarSetPos 1, 0
    5. End Sub

    All credits go to the author (no idea who it is).
    Attached Files Attached Files
    Last edited by Chris001; May 29th, 2008 at 07:11 PM.

  2. #2
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,137

    Re: Add a ProgressBar without the Common Controls component

    Cool!

  3. #3
    New Member
    Join Date
    Sep 09
    Posts
    1

    Re: Add a ProgressBar without the Common Controls component

    vb Code:
    1. it is not working for me. Can you please help me.

Posting Permissions

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