Craig,
>I have a windows forms application, the main (startup) form is an MDI Parent form. I want to display an image as a background picture for the application, centred on the screen. If I set the background image for the form, the image repeats and I can't see an obvious property that will prevent it.
>If I add a picturebox to the form, I can get the image to display correctly, however any MDI Child forms that are opened, open up underneath the picture box.
Unfortunately, it is standard Windows Forms behavior that any controls placed directly on an MDI parent form are first in the Z-Order before any child forms and are always displayed in front of the forms at run time. What we do in MM .NET is hide the image if any forms are open, and show it when all application forms are closed.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com