asp.net窗口应用程序中的单选按钮列表 [英] Radiobutton list in asp.net window applicaion

查看:65
本文介绍了asp.net窗口应用程序中的单选按钮列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是Window应用程序的新手.
我想在表单上放置单选按钮列表.
RadioButtonList在窗口应用程序中不存在,所以我正在使用两个单选按钮.
但我希望一次只能选择这两个文本框之一.
没有群组属性.

我该怎么做.

在此先感谢


I am new in window application.
I want to place radiobutton list on my form.
RadioButtonList is not present in window application, so i am using Two radiobuttons.
But i want only one of these two textboxes can be selected at a time.
There is no group property.

How can i do that.

Thanks in advance

推荐答案

RadioButton在Windows应用程序中按其容器分组.如果将所有RadioButton放在窗体上,则可以选择其中任何一个.

如果要多个组,可以在表单上放置PanelGroupBox,然后将包含在组中的RadioButton放置在表单中.
RadioButtons are grouped by its container in windows application. If you place all RadioButtons on the form, any one of them can be selected.

If you want more than one group, you can place a Panel or GroupBox on your form, and place the RadioButtons contained in a group inside it.


这篇关于asp.net窗口应用程序中的单选按钮列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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