I am writing a program (My first program...) that contains a form that saves textbox info, checkbox, and radio button selections off to a text file when the save button is clicked. This part works.
Then when the form opens (the next time you run the program) it collects all these selections from the text file and saves them as variables in the form. This part works.
I can not find a way to auto-populate these settings back into the form when it opens.
Example:
textBox1 should show the contents of "string userName" when the form opens.
chkBox1 should be checked, or not, depending on the value of "Int chkBox1."
The same for radio buttons.
I am reading the settings file one line at a time and have confirmed that the variable have the information, I just can't get it to show on the newly opened form. Is there a simple way to do this? Thank you...