MDI Maximize problem

I

Imran Zulfiqar

I am using C# and VS.NET 2003. I have an mdi application. Problem is many
child windows are opened and user switch between child windows the child
forms are not in maximized state. First time the child form is opened the it
is in maximized state but when it loses the focus and agian gets the focus
it shriks. I have set the form set the form state maximized but still
behaviour remains the same. Can any body help me about this problem.
 
G

Guest

you can maximize the activated form in MdiChildActivate event of the MDI form.

Like this:

private void MYMDI_MdiChildActivate(object sender, System.EventArgs e)
{
this.ActiveMdiChild.WindowState = FormWindowState.Maximized;
}
 

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