Results 1 to 4 of 4

Thread: Progressbar with image (picbox)

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    ok. I am trying to figure out how to replace a progressbar with a picturebox and a picture

    for use in a webrowser.


    Code:
    Private Sub WB_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
        On Error Resume Next
        picPB.width = (Progress * ???)'* / - + ???what do I doo!!!
    
    'etc...
    VBBrowser v1.4.73

    how do i fifure out the formula to make the image size grow at the rate of the progress??

    (right now it goes wayyyyyyy of the right side of the screen!!)

    Thanks
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  2. #2
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    You need to get in touch with YoungBuck. He posted a program weeks ago that did that.

    Or, I have a program from HeSaidJoe that uses a pictureBox to show progress and overlays it with a percentage. No picture involved, but I can post it if you want. It might give you some ideas.

  3. #3

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    i think im close...

    Picture Box - picPB
    Image - imgPB

    imgPB.width = Progress * (picPB.width / ProgressMax)

    seems to do a good job!

    any better ideas please say so...

    (the search is turned off jbart...i tried) Thanks!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    Oh, I forgot about the search being turned off. You are close. Look at the code in the attached project.
    Attached Files Attached Files

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