|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Load an MDI child maximized...Hi all, I'm just a newbie in VB.Net and I created an MDI container form, with a menu and when I choose something from the menu, it should load the MDI child form maximized. To achieve this I set the WindowState property of the child to 'Maximized' and use the following code to display the form: frmPatient.MdiParent = Me frmPatient.Show() The window loads not maximized in the MDI container, but as soon as I resize or move the MDI Container the Child form maximizes. Do I need to repaint or something? Tia, Martin Try putting the code in the Load event of the Child form
hth, Shmuel Show quoteHide quote "Martin" <x@y.com> wrote in message news:u78gWt2GGHA.2300@TK2MSFTNGP15.phx.gbl... > VB2005 / XP SP2 > > Hi all, > I'm just a newbie in VB.Net and I created an MDI container form, with a > menu and when I choose something from the menu, it should load the MDI > child form maximized. > > To achieve this I set the WindowState property of the child to 'Maximized' > and use the following code to display the form: > > frmPatient.MdiParent = Me > frmPatient.Show() > > The window loads not maximized in the MDI container, but as soon as I > resize or move the MDI Container the Child form maximizes. Do I need to > repaint or something? > > Tia, > Martin > > > > >
When I get the image from the file the file remains locked
Process that copies a prn file to a network printer under username Is MDI child open or not? Problem with SHAppBarMessage Impersonation without credentials ? BUG? SqlDecimal = Single/Double: 4.475 becomes 4.4749999999999996D ???? Generate reports programmatically with reporting services & SQL server 2005 DataTable.Expression VB.Net Setup Project VB.Net 2003 SetUp Project |
|||||||||||||||||||||||