我想要单选按钮代码 [英] i want radio button code
本文介绍了我想要单选按钮代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i没有单选按钮代码iam使用3个单选按钮..一次只选择一个单选按钮..如何编写代码
解决方案
你检查这些吗?
http://msdn.microsoft.com/en-us/library/system。 web.ui.webcontrols.radiobutton.aspx?cs-save-lang = 1& cs-lang = vb#code-snippet-4 [ ^ ]
http://www.tutorialspoint.com/vb .net / vb.net_radio_button.htm [ ^ ]
http://www.w3schools.com/aspnet/control_radiobutton.asp [ ^ ]
您所说的我非常确定并且只是测试了它,但您一次只能选择一个单选按钮无论。这就是它被称为单选按钮的原因。如果你想在用户点击一个按钮后禁用点击任何其他单选按钮,那么当有人点击它时你需要禁用所有的单选按钮。
代码:
双击每个单选按钮并将此代码放入
radiobutton1.Enabled = 错误
radiobutton2.Enabled = 错误
radiobutton3.Enabled = 假跨度>
hi ,
i wan't radio button code iam using 3 radio buttons..one time select only one radio button .. how to write the code
解决方案
Do you check these?
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.radiobutton.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-4[^]
http://www.tutorialspoint.com/vb.net/vb.net_radio_button.htm[^]
http://www.w3schools.com/aspnet/control_radiobutton.asp[^]
What you are saying I am pretty sure and just tested it but you can only select one radio button at a time no matter what. That is why it is called a radio button. If you want to disable clicking any other radio button after a user clicks one then you need to disable all the radio buttons when somebody clicks it.
Code:
Double click each radio button and put this code in
radiobutton1.Enabled = False radiobutton2.Enabled = False radiobutton3.Enabled = False
这篇关于我想要单选按钮代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文