Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to display background image
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00948681
Message ID:
00948780
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform