单选按钮-组属性 [英] Radio Buttons - Group Property

查看:85
本文介绍了单选按钮-组属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Basic的新手,正在通过一些在线教程进行学习.

我找不到单选按钮的组"属性.例如,如果我使用工具箱简单地将两个单选按钮添加到空白表单中,然后单击第一个单选按钮,则该教程将在属性窗口中显示"Group"属性.

但是,当我单击第一个单选按钮并按字母顺序对属性窗口进行排序时,可用的属性从应用程序设置"向下到生成成员",然后到图像".没有名为"Group"的属性.

希望有人能解释我在做什么错.

在此先感谢您.

I am new to Visual Basic and working my way through some online tutorials.

I cannot find the "Group" property for radio buttons. For example, if I use the toolbox to simply add two radio buttons to a blank form, then click on the first radio button, the tutorial says there should be a "Group" property in the properties window.

But when I click on the first radio button and sort my properties window alphabetically, the available properties go from "Application Settings" down to "Generate Member", then to "Image". There is no property named "Group".

Hoping someone can explain what I am doing wrong.

Thanks in advance.

推荐答案

您使用的教程版本错误.您没有(或不需要)Group属性.

更明智的是,单选按钮不需要知道它们在哪个组"中-而是与同一容器中的所有其他单选按钮位于同一组中.因此,您需要做的就是将它们放在容器中,它们会正常工作.普通的容器是GroupBox-但是面板也可以.
You are using a tutorial for the wrong version. You don''t have (or need) a Group property.

More sensibly, radio buttons do not need to know what "Group" they are in - instead they are in the same group as all the other radio buttons in the same container. So all you need to do is put them inside a container, and they will work fine. The normal container is a GroupBox - but a panel will probably do as well.


这篇关于单选按钮-组属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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