How do I get an image control to resize with my form. I want to maximize the form and image control to the users maximum window size. Maximizing the form is simple but how do I get the image control to resize with it?
Printable View
How do I get an image control to resize with my form. I want to maximize the form and image control to the users maximum window size. Maximizing the form is simple but how do I get the image control to resize with it?
Image1.Left = 0
Image1.top = 0
Image1.Width = Me.ScaleWidth
Image1.Height = Me.ScaleHeight
that will fill your form with the image control ;)
Or a little more compactly
VB Code:
Image1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
Thanks guys. Exactly what I needed.