DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   How to Resize Image with form resize event (http://www.daniweb.com/forums/thread87543.html)

hanky Aug 23rd, 2007 8:24 am
How to Resize Image with form resize event
 
Hi,
Please let me know how to resize an Image with form resize event.
Also I will have to limit the size so that the image size is not larger than the scrreen width and so small so that the text in the Image is illegible.
Also, please let me know how to check if caps are on.

Thanks
Hanky

debasisdas Aug 23rd, 2007 9:13 am
Re: How to Resize Image with form resize event
 
to resize the image control set its height =formheight-300 or any other value and the same for width also in the form resize event.

QVeen72 Aug 23rd, 2007 9:58 am
Re: How to Resize Image with form resize event
 
Hi,

use this code in Form_resize event:

Image1.Left =0
Image1.Top =0
Image1.Width = (Me.Width * 0.9)
Image1.Height = (Me.Height * 0.9)

Regards
Veena

hanky Aug 24th, 2007 11:38 am
Re: How to Resize Image with form resize event
 
thnks


All times are GMT -4. The time now is 12:27 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC