Re: Change MDI BackColor

Shishir Kumar Mishra <[email protected]> Thu, 20 Jun 2002 14:39:52 +0530
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <005301c2183a$40541fe0$1901a8c0@shishir>
Hi Dinesh !
After  calling  InitializeComponent();

write following code  in constructor
foreach(Control con in this.Controls)
{  if(con is MdiClient)
  {  con.BackColor = this.BackColor;
    con.BackgroundImage = this.BackgroundImage;
  }
}

HTH...
Shishir Kumar Mishra
Agni Software (P) Ltd.
www.agnisoft.com
----------------------------------
Vidya Dadaati Viniyam
----------------------------------



----- Original Message -----
From: "Dinesh Upare" <[email protected]>
To: <[email protected]>
Sent: Thursday, June 20, 2002 1:02 PM
Subject: [DOTNET] Change MDI BackColor


> Is there any way to change the back color of the MDI Parent form.
>
> If I set the back color property to any color only the controls on the MDI
> Parent form reflects with the back color, but MDI Form doen not (It is
> always Dark Grey).
>
> Can any body help me Out?
>
> Dinesh
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.