如何使用RadioButton [英] How to use RadioButton

查看:86
本文介绍了如何使用RadioButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用RadioButtons并比较它们?

How to use RadioButtons and compare them?

推荐答案

我认为如果您尝试选择1个值(例如男性或女性),以下代码将对您有所帮助单选按钮。

I think the following code will help you if you are trying to choose 1 value such as male or femal using the radio button.
if(radioButton1.Checked== true)
{
 // put your code here, such as
string sex = "Male";

}
if(radioButton2.checked==true)
{
string sex ="Female";
}


如何使用RadioButton

您可以在
$ b上轻松找到一些结果$ b Google



以及你要比较的内容请清楚。
How to use RadioButton
You can easily find a number of results on
Google

and what you want to compare please clearify.


嗨好友..



如果你想使用两个无线电控制器,比如男性女性...



因为它只是放两个控件在像面板或组合框这样的容器控件上...它会一次选择单个......并想要更多然后澄清实际上你想要在你的项目中做什么......
Hi buddy..

if you want to use two radio control like for Male female...

for it just put the both control on a container control like panel or group box...it will select single at once......and want more then clarify that actually what you want to do in your project....

这篇关于如何使用RadioButton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆