|
-
May 27th, 2008, 09:32 PM
#1
Scroll bars for Pictur Box?
Can any one tell me how to add Scroll Bars to Picture Box?
Thanks in advance.
-
May 28th, 2008, 03:11 AM
#2
Re: Scroll bars for Pictur Box?
Use HScrollBar and VScrollBar objects. You can link them to the PictureBox like this:
First, whenever you load a picture - set the dimensions of the scroll bars or enable/disable them.
Implement your custom paint method so that the image inside the picture box is drawn at coordinates that depend on the values of the scroll bars.
Whenever a scroll bar receives a scroll event, refresh the picture box.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|