Problem closing windows form
Posted on 2004-09-27
I am developing a set of user controls components for a program. The main user control consists of a tab control which can add content as tabs when loaded. For example a user control which I use to authenticate clients has got a "Logon" button. When I click on the Logon button, it loads another control on the tab control as a tab page.
However, when I have loaded the content on the tab control, I find It difficult to close the windows form hosting the main user control. I can only kill the form by using the "Control -Alt Delete Method"
Is that garbage collection is late and the windows form can not close because of open resources ?Do I need to explicitly call the dispose method? PLease help me.