Code: Select all
Dim tPic As StdPicture
Dim tProp As Single
ImageBox2.ZoomMode = ZoomFitToControl
Set tPic = LoadPicture(App.Path & "\830509109N.wmf")
tProp = tPic.Height / tPic.Width 'it is 1.586
ImageBox2.Height = ImageBox2.Width * tProp
ImageBox2.DisplayFromStdPicture tPic
Excuse for my bad English.
Thank you