[RESOLVED] Simple question with saving checkboxes
Read slowly! How can i save the value of a checkbox when clicking, so when the program loads, the checkbox will be checked if it was checked the last time the program was used, or the check will be unchecked, if the checkbox was unchecked last time the program was used.
Re: Simple question with saving checkboxes
You can use registry:
VB Code:
Private Sub Form_Load()
Check1.Value = GetSetting(App.EXEName, "LastValues", "Check1", 0)
End Sub
Private Sub Form_Unload(Cancel As Integer)
SaveSetting App.EXEName, "LastValues", "Check1", Check1.Value
End Sub
Re: Simple question with saving checkboxes
I got it working how i like, thanks a lot. I look around first but didnt really see anything.
Re: [RESOLVED] Simple question with saving checkboxes