Solved

vb.net picturebox zoom

Posted on 2004-08-08
4
2,219 Views
Last Modified: 2012-05-05
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

thanks
0
Comment
Question by:cwi2k
4 Comments
 
LVL 28

Expert Comment

by:iboutchkine
ID: 11751925
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.
0
 

Author Comment

by:cwi2k
ID: 12113563
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.

cheers
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 12142564
Submitted to PAQ with points refunded (50)

DarthMod
Community Support Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question