Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a mdi parent window that opens some mdi child windows. When it opens the mdi children, these show up maximized in the parent.

Now this was converted from .net 1.1.

 

I added a new form, set all the properties the same as the other forms but when the mdi parent opens it, the mdi child form is the same size as it is in designer. The only way to actually get it maximized is to resize the mdi parent.

 

Anyone seen this before?

Posted

I found the culprit

 

[csharp]

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

[/csharp]

 

This piece of default code in the InitializeComponent method of the partial Designer class for the form was what caused the form to retain it's designer size. Uncomment it and everything works fine. Seems like .net framework 1.1 did not have this property set.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...