【发布时间】:2017-12-11 23:43:40
【问题描述】:
在 Visual Basic 表单面板中检查复选框并查找已选中的语法是什么?我了解如何使用 for 循环和 if 语句,但我对检查每个复选框的语法感到困惑。例如:
Dim i As Integer
For i = 1 To 10
'Here is where my code would go.
'I could have ten checkboxes named in sequence (cb1, cb2, etc),
'but how could I put i inside the name to test each checkbox?
Next
【问题讨论】:
标签: vb.net forms checkbox for-loop