繁体   English   中英

如何在VB.NET中将没有GroupBox的RadioButtons分组?

[英]How can I group RadioButtons without a GroupBox in VB.NET?

我想对RadioButtons进行分组,但是我不想使用可见控件GroupBox。 VB.NET中是否有类似Java ButtonGroup的东西?

使用Panel控件。

查看RadioButtonList

<asp:RadioButtonList id=RadioButtonList1 runat="server">
      <asp:ListItem>Item 1</asp:ListItem>
      <asp:ListItem>Item 2</asp:ListItem>
      <asp:ListItem>Item 3</asp:ListItem>
      <asp:ListItem>Item 4</asp:ListItem>
      <asp:ListItem>Item 5</asp:ListItem>
      <asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>

希望这可以帮助。

我不确定您是否可以在此处更改asp:RadioButtonList

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM