Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image/Form appearing different size?

Status
Not open for further replies.

TSComp

Programmer
Feb 18, 2002
7
0
0
GB
I have a form with a pciture on. The picture takes up the whole form.
It appears correctly on my computer at differents res.
But having tried it on two different computers, one same res, one different, the whole of the image is not displayed. Im not sure whether it is the image getting bigger or the form smaller.

I have tried specifying the form height and width when the form loads and also tried
Height = Picture1.Height
Width = Picture1.Width
but neither work.

Any one knows why this is happening?

Thanks for the help,

Tom.
 
What you can do is to have two picture boxes, one you can't see and one you can.
Load the picture into the one you can't see and then paint it into the other.
Thus:-

picBackGround = LoadPicture(App.path & "\" & cPage1Background)
picPage(1).PaintPicture picBackGround.Picture, 0, 0, picPage(1).Width, picPage(1).Height

This loads the pic into picBackGround, but you could do that at design time.

Peter Meachem
peter@accuflight.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top