一次只检查一项 [英] checked only one item at time

查看:79
本文介绍了一次只检查一项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有一个选中的列表框,其中有多个项目

如果我选择要检查的第二个项目,则我希望一次只设置一个项目.不检查上一个项目.

hi to all!

i have a checked list box in which multiple items are there

i want to set checked only one item at a time if i select asecond item to be checked previous item should be unchecked.

推荐答案

请看以下StackOverflow问题:如何仅选中复选框列表中的一项 [
Look at this StackOverflow question: how to check only one item in checkedlistbox[^].

But before you use the given solution please consider the comment given that a RadioButtonList might be a better solution for your intended use.


这篇关于一次只检查一项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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