Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center an Image on a MDI parent form
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00783589
Message ID:
00783720
Vues:
17
Hi Fred,

This is one of those tasks that seems like it should be easy but it isn't. The BackGroundImage property will tile. Instead you could add a PictureBox control to your parent form. However, all child forms will display underneath the image. To fix this you could turn visible off for the PictureBox when you show a child form. The other option is to perform manual painting in the MDI Client area. Here is an article that explains how this works:

http://www.vbaccelerator.com/home/NET/Code/Libraries/Windows/MDI_Client_Area_Painting/article.asp

>Hi Guys,
>I am trying to centre an image on a MDI parent form. In the BackGroundImage property set a image. But it keeps on tiling, Can anybody help me please. I am using C#
>
>TIA
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform