This document is archived and information here might be outdated. Recommended version.
Close and destroy the window.
[Visual Basic .NET] Public Sub Destroy ( _ )
[C#] public void Destroy ( );