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

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

ruby - Net::HTTP extremely slow responses for HTTPS requests -