unload a user control

Hi,
I have a vb.net 2005 program.
A load a user control in runtime.
How can I unload this control?
thnx
dgbAsked:
Who is Participating?
 
sjturner2Commented:
Does the user use any unmanaged resources, if so you will need to call the Dispose method to unload the control otherwise the user control will be cleaned up by the .net framework garbage collector when the control goes out of scope such as when the form the control is on is closed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.