C# 是否可以将 groupBox 标题设为单选按钮?

标签 c# winforms

是否可以将 groupBox 标题设为单选按钮? 如果可能的话,我想让整个 groupBox 都依赖于 radioButton。

最佳答案

RadioButton 添加到您的 Form。确保它控制 GroupBox

添加到您的 Form 的构造函数中:

radioButton.Location = new Point(groupBox.Location.X + 13, groupBox.Location.Y - 1);

通过 Events 一切皆有可能。

关于C# 是否可以将 groupBox 标题设为单选按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17616184/

相关文章:

c# - Android 应用程序和 MySql 连接无法连接。打开

c# - 如何获得最近通过身份验证的用户?

c# - 实现 INotifyPropertyChanged 时属性 Getters 和 Setters?

c# - Winforms 数据绑定(bind)到自定义类

c# - 如何实现自己的 HashSet contains 方法

C# 自己的 Boolean 类通过引用传递 bool

c# - 如何设置它以便在调用提示时选择文本框?

winforms - 如何在Windows窗体中检查单选按钮是否被选中

c# - 如何从 DataGridView 中获取选中的对象?

C# 网站,我是否被迫使用 IIS?