MDI CONTAINER

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
In C# when I change the isMDIContainer property of a Form to true, the
background color of the Form changes to a default color set by Visual Stuidio
(a dark grey) . Is there a way I can change this color to something of my
choice. If so how? Changing the background of the Form does not work when
the IsMDIContainer is set to true.
Please assist.
-ZS
 
Hi,
Here is the code
public Form1()
{
this.IsMdiContainer = true;
foreach (Control control in this.Controls)
{

if (control is MdiClient)
{

control.BackColor = Color.Blue;

}
}
[STAThread]
public static void Main()
{

Application.Run(new Form1());

}

I hope this will solve the problem.

Arindam
 
Back
Top