MDI Form Background Image

  • Thread starter Thread starter Ivan Weiss
  • Start date Start date
I

Ivan Weiss

How can I stretch a background image to fit the size of my form (fitting
underneath a toolbar and menu control I have on the top) and make it
automatically resize whenever the form is resized.

I cannot seem to find a stretch property like a picturebox has.

-Ivan
 
* Ivan Weiss said:
How can I stretch a background image to fit the size of my form (fitting
underneath a toolbar and menu control I have on the top) and make it
automatically resize whenever the form is resized.

I cannot seem to find a stretch property like a picturebox has.

You will have to draw the image on your own:

<http://vbaccelerator.com/article.asp?id=4306>
 
I am not sure I understood that example. It seemed to me that sample
was to draw a gradient on the background. I have an image file (.jpg)
that I set to the background of the mdi main form. (It is not a child
but the parent). I need to stretch it to fit the entire form.

I have the same problem with an MDI Child form (which is just a regular
form with the .mdiparent set to the main form). I have an image I am
using as a background to that form as well and it needs to be stretched.

There is no easy way to implement this? If not, I think that is a big
mistake with the Visual Studio design implementation.

-Ivan
 
Back
Top