5 replies
by mslizny
by selfgov2000
by rsv
HI,
You can get the height and width of the .bmp file, using Visual Basic.
1.Place a PictureBox control on the form.
2.Change the AutoSize=True
3.Select the bmp file for the Picture property of the PictureBox.
4.After selecting the bmp file forthe PictureBox, you can see the Height & Width of the PictureBox, those are the height and width of your .bmp file.
Hope this helps you.
GOOD LUCK...:)
RSV is correct but it's not necessary to show or re-size the picture, merely loading it and accessing the picture's (as opposed to the picturebox's) height and width properties will do the trick. e.g.
Me.Picture1.Picture = LoadPicture("c:\heartflwrbck.gif")
MsgBox "Height=" & Me.Picture1.Picture.Height & vbCrLf & _
"Width =" & Me.Picture1.Picture.Width, _
vbInformation, "Voila"
HTH
John
by selfgov2000
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending