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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mike GoldPosted Jan 7, 2008, 8:06 PM
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.