Search This Blog

Friday, July 12, 2013

Change Background of an MDI Form

foreach (Control control in this.Controls)
    {
        // #2
        MdiClient client = control as MdiClient;
        if (!(client == null))
        {
         // #3
         client.BackColor = GetYourColour();
         // 4#
         break;
        }
    }

put this code in page load.