我现在已经有了4个RadioButton想通过for 循环 一下 每次吧这个RadioButton的text修改了,每次可能不是4个也可能是2个通过判断隐藏不显示的
想使用RadioButton(i).text类似于6.0这样的方法。
------解决方案--------------------
For Each r As RadioButton In Me.Controls.Cast(Of RadioButton)()
MsgBox r.Text
Next
------解决方案--------------------
自己建个List 往里面插你的所有控件
list可以用(i)