Closing or Disposing MDI Child forms

  • Thread starter Thread starter CJack
  • Start date Start date
C

CJack

Hy.
I have an MDI form Parent. on run-time it creates a child form Child1.
when you press a keyboard button, the Control on Child1 recieves the
KeyUp event, which raises the KeyUp event of Child1 form. The KeyUp
event of Child1 form load another form Child2 and close the Child1
form.
the problem is when I close ActiveMdiChild of the Parent form, which
is Child1 at the moment, it closes both Child1 & Parent Form.
I want to close activemdichild form without affecting its parent form.
can somebody help me please
 
thanks Pei_world, it does not work. My programm has been disigned that
Child1 from KeyUp event call a function in a class. this function
dispose() the active MDI child form that is Child1 here. this
function process UI requirments.
someone could suggest a smarter way out there please ...

regards
 
Back
Top