A
Andy
Hi,
I have a problem with closing a form, when I'm clicking 'x' button,
the form is still visible.
My form has functionality like TabControl. When I add a new control, all
controls are deleted from the form control collection,
(this.Controls.Clear(); this.Controls.Add( c ) ), but old controls aren't
disposed but added to the queue (Private object on the form of
System.Collection.Queue() class).
After adding the new control, I move focus to this control. Property
ActiveControl of the form is set to null. Where may be a problem?
Regards,
Andy
I have a problem with closing a form, when I'm clicking 'x' button,
the form is still visible.
My form has functionality like TabControl. When I add a new control, all
controls are deleted from the form control collection,
(this.Controls.Clear(); this.Controls.Add( c ) ), but old controls aren't
disposed but added to the queue (Private object on the form of
System.Collection.Queue() class).
After adding the new control, I move focus to this control. Property
ActiveControl of the form is set to null. Where may be a problem?
Regards,
Andy