如何对 Windows 窗体单选按钮进行分组? [英] How do I group Windows Form radio buttons?

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

问题描述

如何将 Windows 窗体应用程序中的单选按钮分组(很像 ASP.NET 的单选按钮列表!)?

How can I group the radio buttons in Windows Form application (a lot like ASP.NET's radiobuttonlist!)?

所以我可以在从选项中选择的每个案例之间切换.

So I can switch between each case chosen from the options.

推荐答案

将组的所有单选按钮放在容器对象中,例如 PanelGroupBox.这将在 Windows 窗体中自动将它们组合在一起.

Put all radio buttons for a group in a container object like a Panel or a GroupBox. That will automatically group them together in Windows Forms.

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

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