Background image in MDI container
-
-
i have a MainForm that act as a MDI container, i load the company logo as backgroundimage, but the image is load as tile mode which fill all the MDI container, is there anyway to set the background image to the center of the MDI container instead of tile?
the way out is little tricky... Add another form in your application. Add picture box on it. Assign image in it. then come to your main MDI Form. and in class Declaration inherit it with this new form. and your job is done.. hope this helps
-
the way out is little tricky... Add another form in your application. Add picture box on it. Assign image in it. then come to your main MDI Form. and in class Declaration inherit it with this new form. and your job is done.. hope this helps
There is one more trick, Form f = new Form(); Panel p = new Panel() f.Controls.Add(p); p.Dock = DockStyle.Fill; p.BackGroundImage = //your image p.BackgroundImageLayout = ImageLayout.Center; This will work only in VS.NET 2005. Thanks, Alomgir
-
i have a MainForm that act as a MDI container, i load the company logo as backgroundimage, but the image is load as tile mode which fill all the MDI container, is there anyway to set the background image to the center of the MDI container instead of tile?