BackColor on MDI container

  • Thread starter Thread starter Bergsvein Vollan
  • Start date Start date
B

Bergsvein Vollan

I have a form with a certain BackColor. I'd like it to be
an MDIContainer but as soon as I set the IsMDIContainer
property to true my BackColor becomes gray.

Isnt it possible to have an MDIContainer with a colored
background?

Bergsvein Vollan
 
Bergsvein Vollan said:
I have a form with a certain BackColor. I'd like it
to be an MDIContainer but as soon as I set the
IsMDIContainer property to true my BackColor
becomes gray.
Isnt it possible to have an MDIContainer with a
colored background?

You need to set the background of the MdiClient, not the MdiContainer.

foreach (Control ctl in this.Controls)
{
if (ctl.GetType() == typeof(MdiClient))
{
ctl.BackColor = Color.Blue;
}
}

P.
 
Back
Top