Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Unload event code


Private Sub  Form_Unload(Cancel As Integer )

'save settings
Settings "save"

'unload all Objects
Dim X As Form
For Each X In Forms
    Unload X
    Set X = Nothing
Next X

End Sub