复选框数组,通过索引访问 [英] checkbox array, access through index
本文介绍了复选框数组,通过索引访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我没有。 c#表单应用程序上的复选框。这些被标记为1,2,3等......我想按照他们的标签以编程方式对它们进行检查或取消选中,例如:
Hello,
I have a no. of checkboxes on a c# form application. these are labelled as 1, 2, 3 and so on... I want to programmatically make them checked or unchecked according to their label, e-g;
展开 | 选择 | Wrap | 行号
推荐答案
试试这个:
try this:
展开 | 选择 | <跨度类= codeLink 的onclick = 自动换行(在此);>裹跨度> <跨度类= codeDivider> | 跨度> <跨度类= codeLink 的onclick =LineNumbers(本) ;>行号
对于那些不知道如何输入[code]标签的人
提示: 当您编写问题(或回复)时,工具栏上有一个按钮,用于包装复制/粘贴代码周围的[code]标记。它有助于一堆。它的按钮上有一个''#''。 有关标签的更多信息。他们很酷。 Check''em出来。
For those that don''t know how to put in [code] tags
TIP: When you are writing your question (or reply), there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a ''#'' on it. More on tags. They''re cool. Check''em out.
我可以提出建议吗?只要您必须复选框,为什么不将它们添加到列表<复选框>当你正在制作它们时?
May I make a suggestion? As long as you have to make the checkboxes anyway, why not add them to a List<checkbox> while you''re making them?
这篇关于复选框数组,通过索引访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文