Check Box Property Problem

daveofgv

Well-known member
Joined
Sep 17, 2008
Messages
218
Location
Dallas, TX
Programming Experience
1-3
I am using a check box tied to a program settings.

When I am in form designer my check box property is "unchecked", however, when I debug my program the checkbox is checked.

My value for my settings is set to false and my property setting is also false.

Does anyone know why it stays checked?

thanks in advanced

daveofgv
 
I am using a check box tied to a program settings.

When I am in form designer my check box property is "unchecked", however, when I debug my program the checkbox is checked.
In debug the user setting is persisted to a user settings file.
My value for my settings is set to false and my property setting is also false.
What? If you mean in designer that is the default deployment value, once it's persisted to a user settings file in first run that takes over runtime value.
Does anyone know why it stays checked?
You mean if you uncheck the box in runtime it doesn't persist unchecked next runtime? When a setting is bound to a control property you can change the value both with the My.Settings property and with the control property. Any chance you have turned off the "save my.settings on shutdown" application setting?

If all else fail you can upload a sample project that feature the problem as you see it, an empty project with a setting bound to a checkbox is sufficient.
 
Back
Top