Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

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
0
dgb
Asked:
dgb
1 Solution
 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now