Hi,
i am not able to change the background color of mdi form?
private void Welcome_Load(object sender, EventArgs e)
{
//MdiClient ctlmdi;
foreach (Control control in this .Controls )
{
MdiClient client = control as MdiClient;
if (!(client == null))
{
client.BackColor = Color.Aquamarine;
break;
}
}
//try
//{
// ctlmdi = (MdiClient)ctl;
// ctlmdi.BackColor = this.BackColor;
//}
//catch (InvalidCastException exc)
//{
// //catch and ignore the error if casting failed
//}
HomePage hp = new HomePage();
hp.MdiParent = this;
hp.Show();
}
Best,
Sudheep.