Re: Change MDI BackColor
Dinesh Upare <[email protected]> Thu, 20 Jun 2002 15:30:19 +0530
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Message-ID | <002501c21841$4b34d650$6364a8c0@dinesh> |
I think I could not put my question in right way. My MDI Form does not have MDI Child but has a space where I could open a Child form. I am not able to change the color of that space, that space is MDI Form's Background color and it is always Dark Grey, the other controls on the MDI form does take the Background color if they are transperent. I don't want't to put any background Image on the MDI Form. Is there any solution for this? Dinesh ----- Original Message ----- From: "Shishir Kumar Mishra" <[email protected]> To: <[email protected]> Sent: Thursday, June 20, 2002 2:39 PM Subject: Re: [DOTNET] Change MDI BackColor > 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. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.