Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Destructor of a user Control

Status
Not open for further replies.

tomcoombs

Programmer
Aug 14, 2003
65
GB
Never seems to get called?!?!? Why would this be?



Code :

~ClipControl()
{
MessageBox.Show("Going....");
}

Tom
 
You probably need to wait until a garbage collection cycle runs.

Or, your class could implement IDisposable. The users of your class would then call .Dispose, which would do the same thing.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top