RuffRyder
04-09-2003, 03:35 PM
hi all,
i've got a little question again. how can i put a background on my mdi-form? i've tried to put an image on my mdi-form, but it automatically gets on top of al my mdi-childs. i just want a picture (or background image) on my mdi-form that can't be seen when my mdi-childs are open.
RuffRyder
Why not use the MDIform.Picture property to load a picture?
Squirm
04-09-2003, 05:47 PM
You can use the Picture property of the MDIForm. If you want a tiled background or one which resizes, you'll need to subclass the MDI Client area, catch various events (such as WM_PAINT) and draw the background yourself. For more information and examples of subclassing (though not for this exact purpose) visit www.elitevb.com
BankCop
04-09-2003, 09:28 PM
hi all,
i've got a little question again. how can i put a background on my mdi-form? i've tried to put an image on my mdi-form, but it automatically gets on top of al my mdi-childs. i just want a picture (or background image) on my mdi-form that can't be seen when my mdi-childs are open.
RuffRyder
Here's a user control that I picked up somewhere that allows you to place a picture in the background of the mdi form. Just copy it to your System32 folder and register it using RegSvr32. Then add it to your project under Project -> Components (you may have to browse for the file). Hope this helps.
BankCop
04-09-2003, 09:36 PM
RuffRyder,
Can't seem to get the attachment to upload. I'll send via email if you want to send your email address by PM
Garrett Sever
04-10-2003, 07:50 AM
http://www.elitevb.com/content/01,0061,01/
http://www.elitevb.com/content/01,0061,01/figure_1.1.jpg
Unfortunately our root page is down right now, I expect due to the stupid news parser. Its been giving us fits for weeks now.