954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

hanky
Newbie Poster
7 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

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.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

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

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

thnks

hanky
Newbie Poster
7 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

Hello There

I come to know you about Resizing image using asp.net-2.0(vb).

I have a url which can help you.

Click Here : http://www.raiseitsolutions.com/forum/viewtopic.php?f=4&t=3&sid=d77033041ed4f76e339e14beda1d7b2c

I hope it is enough for you.

Thank You

AWON

Awon02
Newbie Poster
2 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You