mdi child form does not maximizes

A

Abhijit Taur

hi
in vb.net 2005 i havecreated a mdi child form
when i open that form it opens in normal window
even if i ahd set it propertise to maximzie
when i minimixe it and agin maximize it
its opens as it shuold
pls guide
 
J

Joe Cool

hi
in vb.net 2005 i havecreated a mdi child form
when i open that form it opens in normal window
even if i ahd set it propertise to maximzie
when i minimixe it and agin maximize it
its opens as it shuold
pls guide

This code works for me:

private void ShowNewForm(object sender, EventArgs e)
{
Document frmDocument = new Document();

frmDocument.MdiParent = this;
frmDocument.Text = "Window " + childFormNumber++;
frmDocument.WindowState = FormWindowState.Maximized;
frmDocument.Show();
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top