Visual Basic .NET/IDisposable

Basics
The IDisposable interface is implemented when an object needs to be "cleaned up" after use. If an object has a "Dispose" method, then it needs to be cleaned up after use.

The easiest way to clean up this sort of object is by using the VB keyword "Using".

When an IDisposable object is a form-level variable, it should be disposed in the Form_Closed event.

Visual Basic .NET/IDisposable