Hi..
how can i keep radiobuttons or checkboxes current state (checked,unchecked) for example i run the program and i checked the radioButton, when i run it again it should be checked. Controls are not serializable. so how can i do this ?
Hi..
how can i keep radiobuttons or checkboxes current state (checked,unchecked) for example i run the program and i checked the radioButton, when i run it again it should be checked. Controls are not serializable. so how can i do this ?
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted Jan 7, 2008, 3:06 PM EST
I wouldn't serialize the control to keep the state. I would serialize the data and set the state of the control. You can retain the state of the control, by either binding it to a property and saving the property on exit in a file (e.g. using streamwriter). Then read in in onload in the constructor.