Only one checkbox to be selected

后端 未结 5 1666
被撕碎了的回忆
被撕碎了的回忆 2021-01-14 19:15

I would like to only have single checkbox selected at a time. My program reads from a textfile and creates checkboxes according to how many \"answers\" there are in the text

5条回答
  •  孤城傲影
    2021-01-14 19:42

    I think you are looking for Radio Buttons.

    If you are insistent on using checkboxes then change your event to CheckedChanged as this will be more accurate. Check boxes can unfortunately be clicked without checking themselves!

提交回复
热议问题