Solved

vb.net picturebox zoom

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now