-
Dispose Usercontrol?
Hi guys,
I have read alot of threads regarding dispose and cleaning up.
The one thing I am not sure on do you need to dispose of a usercontrol, say a simple class inheriting textbox with a couple of additonal properties, when you close the form?
If so, would you put that in the formclosed event?
Cheers
Pickles
-
Re: Dispose Usercontrol?
Hi and welcome to the forums
I think that the right way its creating a dispose method for the user control, that disposes all controls inside this usercontrol; once you dispose the form it will dispose all controls inside it.
Hope this helps