There is no way to "delete" an object in .NET like you do in C or C++. The closest you can get is to call the Dispose method if it's available (or the appropriate equivalent since some classes have a Close method that actualy does the same work as Dispose) and wait for the GC to delete it. Check out this article Implementing IDisposable and the Dispose Pattern Properly[^] for more details on how to use Disopse.
----------------------------- In just two days, tomorrow will be yesterday. http://geekswithblogs.net/sdorman