I have a form with a picture on it (not a picture box, a picture as one of the properties of the form). How can I have the picture stretch itself when the size of the form changes?
I suggest that you put an image control on the form. Set the Top and Left to 0 and the stretch property to TRUE.
Include a resize event so that the image control resizes with the form.
You have to be careful because a form has a height and width property. Don't use these because they represent the outside border height and width (including the title bar and the border of the form). Insead, you should use ScaleHeight and ScaleWidth.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.