如何对窗体组合单选按钮(groupname属性?)进行分组? [英] How do I group windows form radio buttons(groupname property? )?

查看:548
本文介绍了如何对窗体组合单选按钮(groupname属性?)进行分组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何对Windows窗体单选按钮进行分组,或者在哪里可以找到RadioButton.GroupName属性?



我尝试过:



................................. ...........

How do I group Windows Form radio buttons, or where I can find the RadioButton.GroupName Property?

What I have tried:

............................................

推荐答案

在Windows窗体中,单选按钮通常使用 GroupBox control。

尝试在测试表单的组合框中放置一些单选按钮,在运行时,您将看到一个组框中一次只能激活一个按钮。没有GroupName属性,至少没有我知道的属性。

您可以搜索winforms groupbox单选按钮并获得大量链接到示例用法。
In Windows Forms, radio buttons are usually grouped using a GroupBox control.
Try to put a few radio buttons in a groupbox on a test form, at runtime you will see that only one button can be activated at a time in a single group box. There is no GroupName property, at least none that I know of.
You can search for "winforms groupbox radio buttons" and get a load of links to example usages.


这篇关于如何对窗体组合单选按钮(groupname属性?)进行分组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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