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

Help manipulating an image

Status
Not open for further replies.

Haazi2

Programmer
Aug 25, 2000
51
US
I'm new to VB. I was trying to find a tutorial on how to resize an image place on the form using the image control. I place the image control on a certain spot on the form and fill the image control with a bitmap. I want to have the bitmap in the image control always appear at the bottom of the formand I would like the image to grow and shrink dynamically as the form is resized. Does anyone have any ideas on how to do this. I tried this and I put the bitmap which is within the image control on the bottom of the form
but when I run the code the image ends up small in the middle of the form. What am I doing wrong?


 
Try this:

Private Sub Form_Resize()

Image1.Move Me.ScaleLeft, 1000, Me.ScaleWidth, Me.ScaleHeight

End Sub
 
Image1.Move Me.Scaleleft Me.ScaleTop, Me.ScaleWidth, Me.ScaleHeight

->replace left, top, width, height with values u want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top