C#如何处理Winform GUI中的多个复选框控件? [英] C# how to deal with more than one checkbox controls in the winform gui ?

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

问题描述

C#如何处理Winform GUI中的多个复选框控件?
我使用C#开发表单和上面的10个以上的复选框控件,过去可以使用哪种方法处理选择的10个复选框控件?
在10个复选框控件中选择任意数量,有A1010情况等. 1 * 2 * 3 * ... * 8 * 9 * 10如此多种情况?我不能使用if-else来判断吗? ?寻求专家来处理类似情况的好方法,谢谢.

C# how to deal with more than one checkbox controls in the winform gui?
I use C# to develop a form and more than 10 checkbox controls above,what method can I used to be able to handle the 10 checkbox controls selected?
select any number of the 10 checkbox controls,there are A1010 situations,etc. 1 * 2 * 3 * ... * 8 * 9 * 10 so a variety of situations?I can not use the if-else to judge it? ? Seek expert to be able to handle a similar situation a good solution, thank you.

推荐答案

您可以使用"foreach"循环来处理它们,请搜索如何使用"foreach"循环?祝你好运.
You can use a "foreach" loop to handle them, please search how to use "foreach" loop? Good luck.


这篇关于C#如何处理Winform GUI中的多个复选框控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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