I have a program that has a UC on it. The UC has a checkbox control.
How do I control the Checkbox?
When the program load it reads an INI file. The INI file has a string that has the current checkbox setting; either a 0 or a 1
If the value from the INI is 0 I want to uncheck the checkbox and if the value is 1 I want to check the checkbox
Also, user is allowed to click on the checkbox to change it's value. If he does then how do I make sure that the checkbox gets the changed value and write this value out to the INI file so that when the program is loaded again it picks up on this changed checkbox value
How do I control the Checkbox?
When the program load it reads an INI file. The INI file has a string that has the current checkbox setting; either a 0 or a 1
If the value from the INI is 0 I want to uncheck the checkbox and if the value is 1 I want to check the checkbox
Also, user is allowed to click on the checkbox to change it's value. If he does then how do I make sure that the checkbox gets the changed value and write this value out to the INI file so that when the program is loaded again it picks up on this changed checkbox value