Thumbs upSolvedPictureBox Help

Posts 16 of 6 · Page 1 of 1
PictureBox Help
Hey. I have been around for a while but never really got into anything code related too serious. Mainly made game trainers for myself.
I'm working on a project at the moment and I need to add to a PictureBox pan functionality or scroll functionality(with HScrollBar and VScrollBar) and honestly i have no clue how to do it. I have been googling a lot for the pan one, but couldn't actually get a good C# code. i have one but it is for VB and its a bit hard to understand.
I'm open to suggestions, everything is welcome!
Thanks for your time.
Quote Originally Posted by bLu3eYeZ View Post
Hey.
If you want a picture box with scroll, then add the picture box in a Panel.
And set it to auto size, and apply Scroll enabled for the Panel.


This is something I did some time ago, can't say it's that simple but. (I don't remember )
Quote Originally Posted by Jorndel View Post


If you want a picture box with scroll, then add the picture box in a Panel.
And set it to auto size, and apply Scroll enabled for the Panel.


This is something I did some time ago, can't say it's that simple but. (I don't remember )
I can't completely seem to understand what you mean, I am really sorry for being dumb.
I am adding a panel, giving it autosize to true, and scroll to true. After this I am adding the picturebox inside the pannel. Still it doesnt seem to show any difference ( I made the picturebox to fit the size of the pannel( maybe that is the problem? )
Quote Originally Posted by bLu3eYeZ View Post
I can't completely seem to understand what you mean, I am really sorry for being dumb.
I am adding a panel, giving it autosize to true, and scroll to true. After this I am adding the picturebox inside the pannel. Still it doesnt seem to show any difference ( I made the picturebox to fit the size of the pannel( maybe that is the problem? )
You're talking about something like this:


Or?
 
Tutorial Here (By Me)
1: Add a Panel then a PictureBox
2: Add the pictureBox inside the panel.
3: Set the AutoScroll to: Enabled (On the Panel)
 
Image

4: Set the SizeMode to: AutoSize (On the PictureBox)
 
Image

5: You're good to go, now load a big image
Quote Originally Posted by Jorndel View Post


You're talking about something like this:


Or?
 
Tutorial Here (By Me)
1: Add a Panel then a PictureBox
2: Add the pictureBox inside the panel.
3: Set the AutoScroll to: Enabled (On the Panel)
 
Image

4: Set the SizeMode to: AutoSize (On the PictureBox)
 
Image

5: You're good to go, now load a big image

Thanks. exactly what i needed
Quote Originally Posted by bLu3eYeZ View Post
Thanks. exactly what i needed
Your Welcome

//Solved
-VM/PM me if you would have it re-opened
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?