Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

vb.net picturebox zoom

Posted on 2004-08-08
4
Medium Priority
?
2,238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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 …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

636 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