Problem In Control Deletion

Tanveerhk

New member
Joined
Jun 25, 2004
Messages
1
Programming Experience
1-3
i have palced some "Acticex controls" on mdi child form and then want for delete any of them control. code is working fine but when i close mdi child form its fine
but when i try to close mdi form it does not close. and also it does not call Closing event. then used "End" in my file->exit menu. tell me why it does not end properly. i am using the following code.

me.activemdichild.activecontrols.dispose()

i have also tried the following but it does not give any problem but it does not destroy the control on the form.

controls.remove(me.activemdichild.activecontrol).
 
Last edited:
Back
Top