OK let me ask another question. Suppose I create a panel, and then in a
subclassed form pass in that panel to the constructor of the form, keeping a
handle on the panel outside of the form. I then show the form using
ShowDialog and call dispose on the form. I still have a handle on the panel
however. Do I have to call dispose on the panel also? Or will this be called
by the garbage collector when I no longer have a handle on the panel? And if
the garbage collector calls dispose for the panel, why do I have to
explicitly call it for a modal dialog?
Thanks,
Adam
"Leit Rachsor" <do**@email.me> wrote in message
news:uY**************@tk2msftngp13.phx.gbl...
Yes. Calling it yourself is a preventative measure and won't cause any
problems.
--
Leit Rachsor