MDI Tabs - initial background image

0
0

Hi,

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?

Cheers,

Neil.

  • You must to post comments
0
0

Hi Neil,

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".

neil1

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;

neil2

Hope that helps.

Best regards
Frank

Attachment
  • Neil Hoskins
    Thank you Frank; perfect. Why did I not find that myself? (please don’t answer that :-) !)
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.