Mdi Parent Background Image

I

Ivan Weiss

How do I get a background image on an mdi parent container to fill the
entire background. I tried putting a picture box on the form with
dockstyle fill and than the picture in it which works but child forms
are not shown on top of the picturebox.

There must be a simple way to do this considering all of the fancy
graphical interfaces out there already created on the .Net framework...

-Ivan
 
H

Herfried K. Wagner [MVP]

* Ivan Weiss said:
How do I get a background image on an mdi parent container to fill the
entire background. I tried putting a picture box on the form with
dockstyle fill and than the picture in it which works but child forms
are not shown on top of the picturebox.

There must be a simple way to do this considering all of the fancy
graphical interfaces out there already created on the .Net framework...

There /is/ /no/ simple way to do that. I remember I already pointed you
to a sample showing how to draw the background...
 
I

Ivan Weiss

The sample you showed me was very different. It was drawing gradients
if I remember correctly, it was not utilizing an image.

If there is no way to do this then how do people do it? I just find it
hard to believe that with all of the apps out there (and many with
backgrounds to mdi parents) none of them have backgrounds made of
images.

Do you have any idea why a form wouldnt display above a picturebox on
the my form?

By the way I know that you tried to help before but I re-posted this in
hope that others out there would read it that didnt before and someone
would either know of a way to do this or know of a component that does
it etc..

-Ivan
 
I

Ivan Weiss

A perfect example of an app doing this is America Online 9. That
definetly seems to be an image to me and not someone coloring in the
background through code, that would have to be too complicated

-Ivan
 
B

Brian Henry

Hi there again,

AOL 9 actually does draw that in memory based on the window size.. that is
how it gets the shaddow effects to look perfect.. it's all a virtual image
drawn and then placed into the window
 
I

Ivan Weiss

Are there any workarounds to get this to work or am I better off just
trying to draw a gradient in the child window or something like that.

I saw one sample posted before but I had a very hard time following it,
are there any other samples that anyone knows of to draw in the mdi
client area?

-Ivan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top