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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form.picture newbie help

Status
Not open for further replies.

GOOGE

Technical User
Jun 20, 2001
36
NZ
hi

can i make a form.picture resize to the same size as the form. i have a cataloging program and i am trying to make a skin generator but when the image is selected if its smaller than the form it look silly and if it larger than the form you cant see it all,but i dont want to resize the form.


please pleas please help i have tried everything


james cuttance
 
Okay heres how I would. Just a matter of preference. I would make the image box, Make it 5 by 5, set stretch to true, and Load a picture.

Then use this code.

Private Sub Form_Resize()
Image1.Height = Me.Height
Image1.Width = Me.Width
End Sub

Replace image1 with the name of your image ofcourse *:->*

Just my preference because this way while designing it doesn't get in the way, and when you maximize the proggie it helps too.

Brad,
Free mp3 player,games and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top