DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: PictureBox and ScrollBars

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    PictureBox and ScrollBars

    [Originally posted by Nuno Anes]

    how can i add scrollbars to a picturebox?

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:PictureBox and ScrollBars

    [Originally posted by Jose Sanchez]

    Hi,
    put your picture inside a container (other picture control or frame)
    put scrollbars on container.
    set picture (not container) propertie
    autoredraw=true

    then set width and heig of your picture
    as big as your container but let scrollbars
    on top
    to scroll image set top -x ald left -x

    when press scrollbar to scroll increase o decrease left and top of your picture, even
    setting negative numbers.

    try this, it supose a work but it is
    nice to do and see how it works,

    hope this help

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:PictureBox and ScrollBars

    [Originally posted by Mortaza Doulaty]

    put a Vertical and a Horizonal Scrollbars.

    Set the max & min vales of each scrollbars to min: 0 and max: picture1.height or picture1.width

    By changing the value of scrollbars chage the .Left & .Top properties to scrollbars values?

    Solved? if not inform me by email.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center