Windows Develop Bookmark and Share   
 index > Windows Forms Designer > MDI PARENT AND CHILD FILL PARENT AREA
 

MDI PARENT AND CHILD FILL PARENT AREA

Ive looked around abit and tried some things but I cant get the child form to fill parent. Its maximised but the form doesnt fill the area and part of the form is off the bottom of the parent form. Heres some code:-

Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) Handles NewToolStripMenuItem.Click, NewToolStripButton.Click, NewWindowToolStripMenuItem.Click

Dim NewMDIChild As New Form1 ' where
' frmcustomerdetails is the child form to be invoked
NewMDIChild.MdiParent = Me
Form1.WindowState = FormWindowState.Maximized
NewMDIChild.Show()


End Sub

Form1 is set to maximise. Thats all any help?
intozz  Saturday, March 07, 2009 4:41 PM
thankyou works excellent
  • Marked As Answer byintozz Sunday, March 08, 2009 2:57 PM
  •  
intozz  Sunday, March 08, 2009 2:57 PM
Try

NewMDIChild.WindowState=FormWindowState.Maximized


Thanks, A.m.a.L
A.m.a.L - aditi.com - Think Product  Sunday, March 08, 2009 2:09 PM
thankyou works excellent
  • Marked As Answer byintozz Sunday, March 08, 2009 2:57 PM
  •  
intozz  Sunday, March 08, 2009 2:57 PM
You marked the wrong post as answer :(
Thanks, A.m.a.L
A.m.a.L - aditi.com - Think Product  Monday, March 09, 2009 6:42 AM

You can use google to search for other answers

Custom Search

More Threads

• Adding buttons/tabs to a ToolStrip/TabControl in my custom user control all this in design-time
• Desinger Not drawing some components
• lost with glyph, adorner and behaviorservice,...
• Problem in ultraTabControl
• Setting selected state of properties in propertygrid...
• ActiveX design does not save
• OutlookBar control - per-button basis
• UserControl Property Question - Need Help
• How can i add a verb to a components designer from a different components designer
• InvokePaintbBackground method