在複選框的內部檢查可視化基本表單面板並查找哪些被檢查的語法是什麼?我理解我可以如何使用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
第一行應該是'對於panel.Controls'每個CTRL作爲控制 – Wayne