Closing or Disposing MDI Child forms

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
 
C

CJack

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
 

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