winforms - Checkboxes in groupbox automatically uncheck when closing form c# -
i have groupbox
in form
. in groupbox
have 3 checkboxes
can checked either one, 2 or three. want checked state maintain after close form , reopen it. groupbox
has taken consideration? how can this? thank you.
create custom class groupbox items. add properties each item, i.e. .checked
store object in global variable. before form closes, update global variable witht current item structure , checked properties.
on re-open of form, load , prepare groupbox custom object.
if groupbox state needs persist on application close, have above, use database instead of global variable.
Comments
Post a Comment