PictureBox problem

  • Thread starter Thread starter sajin
  • Start date Start date
S

sajin

Hi all.
I have one picture box of size(135,100). I had kept PictureBox.SizeMode
= CenterImage.
If Image size is greater then PictureBox size then i set
PictureBox.SizeMode = Zoom
If Image size is less then PictureBox size then I set
PictureBox.SizeMode = CenterZoom.
But if image is Square then the Image gets cropped since sice of
Picturebox is of shpe Rectangle.
Please tell me what can be done to resolve it so image will no get
cropped.
I am using VS 2005 VB .Net

Thanks in adance
Sajin
 
Back
Top