I know this is a broad question, but how is the save settign feature used? Would it be possible to like save whether a checkbox was checked for a later runtime?
Printable View
I know this is a broad question, but how is the save settign feature used? Would it be possible to like save whether a checkbox was checked for a later runtime?
It saves some value to a registry and getsetting retrieves it back.
Here is how it works:
Code:Private Sub Check1_Click()
SaveSetting App.EXEName, "Config", "Check1", Check1.Value
End Sub
Private Sub Form_Load()
Check1.Value = CInt(GetSetting(App.EXEName, "Config", "Check1", 0))
End Sub
Here is a quick example:
Code:Private Sub Command1_Click()
SaveSetting App.EXEName, "Options", "chkTest", chkText.Value
End Sub
Private Sub Command2_Click()
chkTest.Value = GetSetting(App.EXEName, "Options", "chkTest", 0)
End Sub
Thanks all...