Results 1 to 13 of 13

Thread: [Solved] [02/03] Problem w/ Code

Threaded View

  1. #1

    Thread Starter
    Lively Member smart_phil_dude1's Avatar
    Join Date
    Jun 2005
    Location
    Behind You!
    Posts
    125

    Resolved [Solved] [02/03] Problem w/ Code

    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:
    1. Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
    2.         SaveSetting("Notes", "Save", "Save Text", CheckBox1.Checked)
    3.     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:
    1. Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.         If GetSetting("Notes", "Save", "Save Text") = True Then
    3.             CheckBox1.Checked = True
    4.         Else
    5.             CheckBox1.Checked = False
    6.         End If
    7.     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?
    Last edited by smart_phil_dude1; Nov 3rd, 2006 at 04:29 PM. Reason: Problem Solved
    Please Help Us Save Ana or donate now by going to Oneana.com

    Visit my Website at http://www.therealfantasy.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width