I want to make a program that saves the states of about 50 checkboxes, so that I can keep track of the states I have been in. I also want to have four different save and load buttons, so that I can keep track of the states the 3 other family members in my family have been in.
Here is the code that is was using that didn't work:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim Write As New System.IO.StreamWriter("c:data/Box1.dll") Write.Write(CheckBox1.CheckState) Write.Close() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Read As New System.IO.StreamReader("c:data/Box1.dll") CheckBox1.CheckState = Read.ReadToEnd Read.Close() End Sub End Class
This is only the Load and Save buttons with one checkbox.