PROKA Posted January 10, 2007 Posted January 10, 2007 I have a child window (frmOne), maximized in its parent window. I have a link to open another window (frmTwo) this frmTwo is fixed size, looks awful maximized. When I open it, it opens it as being Maximized. This frmTwo.WindowState=FormWindowState.Normal doesn't work Quote Development & Research Department @ Elven Soft
*Experts* Nerseus Posted January 10, 2007 *Experts* Posted January 10, 2007 I've noticed this, too. Even when the MaximizeBox is set to false the form will show maximized in MDI. Our solution was to use the Activated event of those forms that you don't want maximized and put in the following code: VB: Me.WindowState = FormWindowState.Normal C#: this.WindowState = FormWindowState.Normal; If you do it often, you can create a base form that handles this. For overall design, it's nice to have a few "base" forms. We have ApplicationForm, SearchForm, and DialogForm at our company. -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
PROKA Posted January 12, 2007 Author Posted January 12, 2007 Ok Ner, it works like that but there's another issue: Like this, the frmOne gets .windowState = FormWindowState.Normal too, and It's bad also :( Quote Development & Research Department @ Elven Soft
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.