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!

Resize picture control at runtime.

Status
Not open for further replies.

JohnStep

Programmer
Apr 19, 2000
190
US
Can you resize a picture control at run time? I am trying adjust the Height and Width at runtime and it gives me a method not found error. Any Ideas


John Stephens
 
what code are you using?

Private Sub Command1_Click()
Picture1.Width = 100
Picture1.Height = 100
End Sub

That will change the size of a picture object.

Greg Palmer

----------------------------------------
Any feed back is appreciated.
 
Im curious is there anyway to resize a picturebox to the size of the image that is loaded into the picturebox?
or to find the width and height of the image in the picturebox?
 
I posted before I thought picture1.autoresize will do the trick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top