Guest User

Guest User

  • Tech Writer
  • 47
  • 90.3k

ShowDialog (MdiChild)

Feb 20 2011 8:06 AM
Hi all,

I ve Main Form (FormMai , isMdiContainer=true) and I ve a child From. (FormCh).

\\ Button_Click in FormMai
FormCh x= new FormCh();
x.MdiParent=this;
x.Show();

I works...

But why x.ShowDialog() doesn't work. How can I set it, or is It possible to set ?

I do not want to let to pass the other form by not closing the child.

When I click the main form or the other child forms I want the Form which is Activated to Focus....

Please Help me ..

Thanks ..

Answers (1)