If you wanted to save settings to the Registry, you could do something like this example:

SaveSetting app.exename, strUser, strID, txtUser.Text

In doing so, the SaveSetting function would take the name of the currently running program, and the values of the other variables and save them to the Registry.