Clear user control from memory

M

Mike TI

Mar 23, 2006

Hi all

I am new to VB.Net. I am using VB.Net 2005.

I have built a Form with a Split Container Control. I am docking several
User Controls in one Panel based on request. I am using 'Show' and 'Hide'.

My question is that I want to remove a user control from memory instead of
hiding.

Thanks.
 
G

Guest

Mike said:
Mar 23, 2006

Hi all

I am new to VB.Net. I am using VB.Net 2005.

I have built a Form with a Split Container Control. I am docking several
User Controls in one Panel based on request. I am using 'Show' and 'Hide'.

My question is that I want to remove a user control from memory instead of
hiding.

Thanks.

It will be released by the garbage collector once all references to the
form go out of scope. So setting the reference to "nothing" should set
it ready to be collected.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top