MDI Forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I am working on mdi forms.
I have a couple of child forms.
when I make the FormBorderStyle property of a child form as fixed dialog,the
child form becomes movable on the parent form.Is there a way by which I will
be able to make the child form fixed as well have the user be able to close
the child form if they want to?Cause if I make the FormBorderStyle property
as none,the child form becomes fixed on the parent form,but then the user is
not able to close the form.
Can anyone please provide me a solution for this??

Thanks and Regards
 
Hi,

You can always add a button in the upper right corner of the child that
looks like the closing X and close the child in the click event.
 
Hi,
If you really thinking about the movable and close the of a form... then you
can use
Form_move event.

Just put the following code in side the Form_Move event..


this.Top= ((Screen.PrimaryScreen.WorkingArea.Height- this.Height)/2);
this.Left=((Screen.PrimaryScreen.WorkingArea.Width-this.Width)/2);

even this is not correct solution ... this may help you..

-rajaManickam
 
Back
Top