MDI Background Image

Posted by Sudheep.grandhe under C# on 11/2/2011 | Points: 10 | Views : 2625 | Status : [Member] | Replies : 1
Hey,

I want to add a background image to an MDI parent but I'm running into some troubles. I want to have the picture to always stay in the center.

Originally I tried to add the picture to the forms background image but it tiles the image and the white background causes weird stuff to happen even though I adjusted the Transparency property.

Then I tried to use a picturebox which I could resize accordingly to the window and it looked great... however, whenever I open a child form in the MDI, it doesn't appear because I'm pretty sure its behind the picturebox. I tried to fix this using the SendToBack and BringToFront methods but it didn't work.

Any suggestions?

Best,
Sudheep.



Responses

Posted by: Naraayanan on: 2/6/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
try this
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response