如何从Windows窗体中的多个复选框中选中一个复选框 [英] how to select one check box from multiple check boxes in windows forms

查看:91
本文介绍了如何从Windows窗体中的多个复选框中选中一个复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从多个复选框中只选中一个复选框,所有复选框都不在表单中的复选框列表中,如果我选中该复选框,则不能选中所有其他复选框。

喜欢

复选框1未选中

复选框2选中

复选框3未选中







如果我选中复选框,则不能选中所有其他复选框,然后执行复选框代码

I would like to select only one check box from multiple check boxes all check boxes are not in the check box list they are in the form, if i selected that check box all others check boxes must not be selected.
like
check box 1 not selected
check box 2 selected
check box 3 not selected



if i select check box , all others check boxes must not be selected and then execute that check box code

推荐答案

忘记复选框,使用 RadioButton [ ^ ]。
Forget checkbox, use RadioButton[^] instead.


这篇关于如何从Windows窗体中的多个复选框中选中一个复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆