Hi,
If you leave the image's height and width properties blank the
picture will auto size. You might have to look in the html portion of the
form and delete the height and width of the asp:image manually. Hope this
helps.
Ken
-------------------
"Dan" <da*@dsully.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Should have said that this is in Web Forms.....no picturebox control and no
SizeMode property that I can see.
Dan
--------------------------------
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
"Dan" <da*@dsully.com> schrieb:I have a folder with various images which are updated (externally)
periodically and a web page with an image control, text and user control
buttons. Depending on the users actions, I want to display a picture and
associated text. It all works fine except that the pictures are distorted
to fill the image control.
Is there any way I can display the picture in its original proportions
without externally resixing each picture to the dimensions of the image
control?
Set the image control's 'SizeMode' property to 'AutoSize'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>