Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Center an Image on a MDI parent form
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00783589
Message ID:
00783720
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform