Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

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

Clear application settings from registry


'VB puts registry information at:
'HKEY_CURRENT_USER\Software\VB and VBA Program Settings\appname\section\key\value

'to save a key-value pair
SaveSetting App.Title, "Settings" , "MainLeft" , frmMain.Left

'to remove a section
DeleteSetting App.Title, "Settings"