Solved

vb.net picturebox zoom

Posted on 2004-08-08
4
2,215 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Close form "before" open 3 48
Call windows 10 virtual keyboard from windows forms app 2 50
Sql server insert 13 36
MailAddress in vb 4 29
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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 …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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