Results 1 to 2 of 2

Thread: ScrollBars in PictureBox???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Buenos Aires, Argentina
    Posts
    64

    Unhappy

    Hi.

    If anybody knows how to implement ScrollBars in a PictureBox please let me know.

    Thanks.
    Juan
    Argentina
    VB6 Ent.
    [email protected]

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    You will have to be a little more specific i am afraid.

    If you mean you want to scroll a picture then.

    Add a PictureBox to the Form.
    Place another PictureBox inside the above one. This one can be as big as you like.
    Now add scroll bars next to the outer PicBox.

    In the scrollevents.
    Code:
    Private Sub VScroll1_Change()
        Picture2.Top = -VScroll1
    End Sub
    
    Private Sub HScroll1_Change()
        Picture2.Left = -HScroll1
    End Sub
    Iain, thats with an i by the way!

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