Also in VB6 ist der Code so: ...

Code:
Private Sub buttonExit_Click()
Unload Me
End Sub