One method is to read and write to an ini file.
---------------------------------------------------------
Paste this code into your Form Code Module
Public Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Public Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long
Public Const MyINI as string = App.Path & "\SomeAppropriateName.ini"
Public Sub Form_Load()
On Error GoTo ErrorHandler
Dim Temp As String * 300
Dim ReadLine As Integer
ReadLine = GetPrivateProfileString("SETTINGS", "Txt1Cap", "DefaultValue", Temp, Len(Temp), MyINI)
Text1.Text = Left$(Temp, Len(Temp))
ReadLine = GetPrivateProfileString("SETTINGS", "Txt2Cap", "DefaultValue", Temp, Len(Temp), MyINI)
Text2.Text = Left$(Temp, Len(Temp))
ReadLine = GetPrivateProfileString("SETTINGS", "Txt2Cap", "DefaultValue", Temp, Len(Temp), MyINI)
ReadLine = GetPrivateProfileString("SETTINGS", "FrmBGColour", "&H8000000B", Temp, Len(Temp), MyINI)
Me.BackColor = Left$(Temp, Len(Temp))
Exit Sub
ErrorHandler:
MsgBox Err.Number & " " & Err.Description
End Sub
Public Sub Form_UnLoad()
Dim WriteLine As Integer
WriteLine = WritePrivateProfileString("SETTINGS", "Txt1Cap", Text1.Text, MyINI)
WriteLine = WritePrivateProfileString("SETTINGS", "Txt2Cap", Text1.Text, MyINI)
End Sub
--------------------------------------------------------
Open Notepad and create a file called SomeAppropriateName.ini and save your applications path.
Inside this file Paste the following
[SETTINGS]
Txt1Cap=TESTING CAPTION 1
Txt2Cap=TESTING CAPTION 2
FrmBGColour=&H80000003
--------------------------------------------------------