kk, i have a richtextbox, and if checkbox1 is checked, then it saves the text from the richtextbox when some text is changed.
VB Code:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged SaveSetting("Notes", "Save", "Save Text", CheckBox1.Checked) End Sub
this is the code i used to save if the checkbox is checked or not. it works.
although, when i restart the app, the checkbox is the default one... so i used:VB Code:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load If GetSetting("Notes", "Save", "Save Text") = True Then CheckBox1.Checked = True Else CheckBox1.Checked = False End If End Sub
although no matter what, it puts the checkbox back to checked when i open the app... even if the value actually is False, it just puts it to true
i even check with my regedit and saw that it saved it as false when i unchecked it. but when i restarted it, i rechecked the regedit and it was changed to true and the checkbox was checked....
what's my problem here?





Reply With Quote