vb.net picturebox zoom

hi i have drawn a picture (set of lines) in a picturebox using picturebox1.creategraphics but the picture goes over the border, how do i zoom in on the picture and make it fit to the page

Who is Participating?
DarthModConnect With a Mentor Commented:
Submitted to PAQ with points refunded (50)

Community Support Moderator
If you are talkig about win forms then

set the
picturebox's SizeMode to "StretchImage", the image's size will be adjusted
automatically in the picturebox.
cwi2kAuthor Commented:
hi sorry question wasnt abandoned just went on to other things

i had tried the stretchimage attribute and that didnt work, it cleared the image and just put it back the same way

the way im using it is picturebox1.creategraphics.drawline(x,y,x,y) so its not loading an image off the drive.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.