For example: place one TextBox on your form (with a name Text1). Then try this code:
VB Code:
Private Sub Form_Load()
'to get the value on load - if no value was saved before,
'Text1.Text will equal vbNullString - the default value
Text1.Text = GetSetting("myApp", "Settings", "TextBox", vbNullString)
End Sub
Private Sub Form_Unload(Cancel As Integer)
'to save the value on unload
SaveSetting "myApp", "Settings", "TextBox", Text1.Text
End Sub
Run it once, type something, then stop the program. Then run it again. If everything works as it should, Text1.Text will equal what you wrote before.