level 1
有十多个RadioButton单选框,我要实现的是点一下单选框,那么textbox的值就等于RadioButton的名字
现在我只能是:
if RadioButton1.checked=true then
textbox1.text=RadioButton.text
end if
....
这样写一堆,但这样显得很长,有没有办法换种写法?
2014年11月20日 07点11分
1
level 13
写事件
获取object类型的sender,然后转换成RadioButton类型,最后让text等于RadioButton的Name。
还要遍历窗体上的每个RadioButton,依次绑定事件
2014年11月20日 13点11分
2
搜索了一下,大概明白是怎么回事了,明天去试一下行不行。谢谢。
2014年11月20日 15点11分