Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need a simple code Pin
Christian Graus5-Jun-08 10:30
protectorChristian Graus5-Jun-08 10:30 
Questionobject manipulation in callback function Pin
your_daddytoo5-Jun-08 9:13
your_daddytoo5-Jun-08 9:13 
QuestionFrom maximized form, create a minimized form. Pin
oscarderooij5-Jun-08 8:30
oscarderooij5-Jun-08 8:30 
AnswerRe: From maximized form, create a minimized form. Pin
Gareth H5-Jun-08 9:21
Gareth H5-Jun-08 9:21 
GeneralRe: From maximized form, create a minimized form. Pin
oscarderooij5-Jun-08 10:01
oscarderooij5-Jun-08 10:01 
GeneralRe: From maximized form, create a minimized form. Pin
DaveyM695-Jun-08 11:17
professionalDaveyM695-Jun-08 11:17 
GeneralRe: From maximized form, create a minimized form. Pin
oscarderooij9-Jun-08 5:01
oscarderooij9-Jun-08 5:01 
GeneralRe: From maximized form, create a minimized form. Pin
DaveyM6911-Jun-08 6:18
professionalDaveyM6911-Jun-08 6:18 
Place this method in your MDI Parent form:
private void ChildFillClientArea()
{
    if (ActiveMdiChild !=null)
    {
        Form activeChild = ActiveMdiChild;
        Rectangle clientArea = Rectangle.Empty;
        foreach (Control control in this.Controls)
        {
            if (control is MdiClient) clientArea = control.ClientRectangle;
        }
        activeChild.Bounds = clientArea;
    }
}
and call it after showing the form
MonitorRiscoResultadoFrm frmMonitor = new MonitorRiscoResultadoFrm();
frmMonitor.MdiParent = this;
frmMonitor.Show();
ChildFillClientArea();

Edit: No need to place any code in the child form's load method

Dave

QuestionMasked column in DataGridView Pin
AndrusM5-Jun-08 8:26
AndrusM5-Jun-08 8:26 
QuestionPlayin MMS Streams Pin
User 43030175-Jun-08 8:21
User 43030175-Jun-08 8:21 
AnswerRe: Playin MMS Streams Pin
DaveyM695-Jun-08 11:34
professionalDaveyM695-Jun-08 11:34 
GeneralRe: Playin MMS Streams Pin
User 43030176-Jun-08 3:42
User 43030176-Jun-08 3:42 
QuestionVS 2008 performance Pin
netJP12L5-Jun-08 7:53
netJP12L5-Jun-08 7:53 
AnswerRe: VS 2008 performance Pin
Joe Woodbury5-Jun-08 8:23
professionalJoe Woodbury5-Jun-08 8:23 
AnswerRe: VS 2008 performance Pin
Alan Balkany6-Jun-08 3:53
Alan Balkany6-Jun-08 3:53 
GeneralRe: VS 2008 performance Pin
netJP12L6-Jun-08 5:01
netJP12L6-Jun-08 5:01 
GeneralRe: VS 2008 performance Pin
Alan Balkany6-Jun-08 5:04
Alan Balkany6-Jun-08 5:04 
GeneralRe: VS 2008 performance Pin
Pete O'Hanlon6-Jun-08 8:22
mvePete O'Hanlon6-Jun-08 8:22 
QuestionTransparent form Pin
Saiyed Alam5-Jun-08 7:16
Saiyed Alam5-Jun-08 7:16 
AnswerRe: Transparent form Pin
Anthony Mushrow5-Jun-08 7:24
professionalAnthony Mushrow5-Jun-08 7:24 
GeneralRe: Transparent form Pin
Saiyed Alam5-Jun-08 7:36
Saiyed Alam5-Jun-08 7:36 
GeneralRe: Transparent form Pin
Anthony Mushrow5-Jun-08 7:42
professionalAnthony Mushrow5-Jun-08 7:42 
GeneralRe: Transparent form Pin
PIEBALDconsult5-Jun-08 7:57
mvePIEBALDconsult5-Jun-08 7:57 
GeneralRe: Transparent form Pin
Saiyed Alam5-Jun-08 8:13
Saiyed Alam5-Jun-08 8:13 
QuestionWinforms default language Pin
jekak5-Jun-08 6:38
jekak5-Jun-08 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.