Skip to content

About serialize

yusuf

Asked Jan 6, 2008, 11:34 PM EST1 answer
Share
LinkedInX

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 ?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0

    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.

    0