Save checkbox settings on close

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Atran
    Contributor
    • May 2007
    • 319

    #16
    To Learn VB, Download Free Ebooks from this site:
    http://www.getebooks4f ree.com/dot_net_free_eb ooks.html

    Comment

    • Atran
      Contributor
      • May 2007
      • 319

      #17
      Try Command:
      In my 15th Post I write:
      Code:
       Try
      
          If (My.Computer.FileSystem.FileExists("C:\test.txt")) Then
                              CheckBox1.Checked = Flase
          End If
           
         Catch ex As Exception
      
      End Try
      If the test.txt file not found that will be error, then you can use Try to try.

      Comment

      • Atran
        Contributor
        • May 2007
        • 319

        #18
        I forget to till to you how to create a text file, see this code:
        Code:
        System.IO.File.Create("C:\Hello.bmp")
        or Using this:
        Code:
        System.IO.File.CreateText("C:\Hello.txt")
        Hope this Tutorial was Helpful.

        Comment

        Working...