I’m using a MDI tabbed theme and when the main window opens, there are no tabs. I’d like to be able to display an image, centred there. Once a tab opens the image is no longer displayed. Similarly, when the last tab is closed, the image appears again.
I’ve looked at the Custom Wallpaper extension no image appears if I use the form as the control to apply it to.
Is this possible?
You can use
this.MdiClient.BackgroundImage or this.MdiClient.BackgroundImageSource
But please keep in mind, that the MDI Client includes the tabbed control so it´s probably best to leave some space at the top of the image.
Otherwise it will show through the tab control.
You can try with
this.MdiClient.BackgroundImageSource = "icon-print".
Or you can also set the background color of the tab control to “hide” the image part:
this.MdiClient.TabControl.BackColor = System.Drawing.Color.Red;
Hope that helps.
Please login first to submit.