EDN Admin
Well-known member
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; I having trouble with the WindowsState Maximized Property.<span style="mso-spacerun: yes; I have a MDI WinForm application with a number of <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; Child forms. I setup up each Child form with the <span style="font-size: 8pt; color: black; font-family: Verdana; WindowsState Maximized Property in the Property screen of the VS 2008.<span style="mso-spacerun: yes; The MDI Container form is also Maximized.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; When I run the application, the MDI Container opens Maximized as it should.<span style="mso-spacerun: yes; When I try to open a <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; Child form it opens partaly <span style="font-size: 8pt; color: black; font-family: Verdana; Maximized.<span style="mso-spacerun: yes; The MenuStrip and ToolStrip are Maximized including the MenuStrip having the Close, Maximized, and Minimize controls in it.<span style="mso-spacerun: yes; On the form, the BindingNavigator and the Form itself is the size they would be if the WindowState was Normal.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; If I Minimize the MDI Container form and bring it back the <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; Child form will be <span style="font-size: 8pt; color: black; font-family: Verdana; fully Maximized as it should be.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; I am not sure what is wrong.<span style="mso-spacerun: yes; Is it a Bug or do I need to do something in my code?
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; As always thanks for the help.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; Rich
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; Here is my code to open the <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; Child form.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes;
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; <span style="color: blue; Dim CountryListChildForm <span style="color: blue; As <span style="color: blue; New frmCountryList
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; <span style="color: green; Make it a child of this MDI form before showing it.
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; CountryListChildForm.MdiParent = <span style="color: blue; Me
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; CountryListChildForm.Show()<span style="font-size: 8pt; color: black; font-family: Verdana;
View the full article
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; When I run the application, the MDI Container opens Maximized as it should.<span style="mso-spacerun: yes; When I try to open a <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; Child form it opens partaly <span style="font-size: 8pt; color: black; font-family: Verdana; Maximized.<span style="mso-spacerun: yes; The MenuStrip and ToolStrip are Maximized including the MenuStrip having the Close, Maximized, and Minimize controls in it.<span style="mso-spacerun: yes; On the form, the BindingNavigator and the Form itself is the size they would be if the WindowState was Normal.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; If I Minimize the MDI Container form and bring it back the <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; Child form will be <span style="font-size: 8pt; color: black; font-family: Verdana; fully Maximized as it should be.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; I am not sure what is wrong.<span style="mso-spacerun: yes; Is it a Bug or do I need to do something in my code?
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; As always thanks for the help.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; Rich
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana;
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 8pt; color: black; font-family: Verdana; Here is my code to open the <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; Child form.
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes;
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; <span style="color: blue; Dim CountryListChildForm <span style="color: blue; As <span style="color: blue; New frmCountryList
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; <span style="color: green; Make it a child of this MDI form before showing it.
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; CountryListChildForm.MdiParent = <span style="color: blue; Me
<p class="MsoNormal" style="margin: 0in 0in 0pt; <span style="font-size: 10pt; font-family: "Courier New"; mso-fareast-language: KO; mso-no-proof: yes; <span style="mso-spacerun: yes; CountryListChildForm.Show()<span style="font-size: 8pt; color: black; font-family: Verdana;
View the full article