本文介绍了WinForms RadioButtonList 不存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道WebForms 有一个RadioButtonList 控件,但我找不到WinForms 的控件.我需要的是将 3 个 RadioButtons 组合在一起,以便一次只能选择 1 个.我发现我必须通过代码来做到这一点,这很痛苦.我只是在某处没有看到 RadioButtonList,还是 WinForms 中确实不存在它?

I know that WebForms has a RadioButtonList control, but I can't find one for WinForms. What I need is to have 3 RadioButtons grouped together, so that only 1 can be selected at a time. I'm finding that I have to do this through code, which is a pain. Am I just not seeing RadioButtonList somewhere, or does it really not exist in WinForms?

推荐答案

显然不是.

您可以使用 GroupBox 或面板将三个 RadioButton 组合在一起 就像这里所做的那样.

You can group three RadioButtons together using a GroupBox or a Panel as is done here.

这篇关于WinForms RadioButtonList 不存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 00:51