Garry
Wed Oct 25 04:14:17 CDT 2006
Regarding MDI child forms, how do I re-size a loaded child form to
completely fill the ClientRectangle area.
The following code:
frmChild.Top = 0
frmChild.Left = 0
frmChild.Width = Me.ClientRectangle.Width
frmChild.Height = Me.ClientRectangle.Height
frmChild.Show()
displays a child that is TOO big to fit so the client area displays scroll
bars.
Where is there HELP material on the somewhat obscure '.ClientRectangle' -
for the 'Dummy User' of course.
Golly - Microsoft duz obscure things.
In VB6 it woz SO SIMPLE.
Some code examples would be much much appreciated.
Garry
"Bryan Phillips" <bphillips@nospam.crowechizek.com.spammenot> wrote in
message news:%235CeP978GHA.2364@TK2MSFTNGP02.phx.gbl...
> The dark grey is the MDIClient control. To set its BackColor at run-time
> use code like this:
>
> // Create a new form, make it an MDI container and change the BackColor.
> Form f = new Form();
> f.IsMdiContainer = true;
> f.Controls[0].BackColor = Color.Blue;
> f.ShowDialog();
>
>
> Bryan Phillips
> MCSD, MCDBA, MCSE
> Blog:
http://bphillips76.spaces.live.com
>
>
>
>
> "Tim Farrell" <Tim Farrell> wrote in message
> news:20061019155036timothy.farrell@compuware.com:
>
>> Hello,
>>
>> I am VERY new to WindowsForms but VERY eager to learn.
>>
>> I am in the process of creating an MDI application to manage High
>> Sensitivity Customers within our organization. I am working on the first
>> form which will host the login controls to the application.
>>
>> I noticed that when I change the type of the form to an isMDIcontainer to
>> TRUE the background color of the application changes to dark grey. No
>> matter what I do I cannot change the background color.
>>
>> This is really ugly. I even tried a background color however, when I
>> change the controls background to transparent, they are wrapped with that
>> dark grey color instead.
>>
>> Does anyone have any ideas or resources I can view to rectify my issue?
>>
>> Thank you very much.
>>
>> Tim
>>
>> EggHeadCafe.com - .NET Developer Portal of Choice
>>
http://www.eggheadcafe.com
>