vb.net GroupBox 不在工具箱中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13097356/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
GroupBox not in toolbox
提问by Hasan Zubairi
I am using Visual Studio 2010 and I cant find groupbox in toolbox. It is showing in the list of components and it is checked. I also tried to insert it through code but it is also not showing in the code. In some pre made pages like login and createuser wizard visual studio is showing the groupbox. Any idea what could be the problem?
我正在使用 Visual Studio 2010,但在工具箱中找不到 groupbox。它显示在组件列表中并被选中。我也尝试通过代码插入它,但它也没有显示在代码中。在一些预制页面中,例如 login 和 createuser 向导,visual studio 显示了 groupbox。知道可能是什么问题吗?
回答by Hasan Zubairi
The same functionality you can achieve by the following code:
您可以通过以下代码实现相同的功能:
<fieldset class="login">
<legend>Title</legend>
<div>Content</div>
</fieldset>
回答by Dionisio Estrada
You can use Panel. Specify the text on GroupingText property.
您可以使用面板。在 GroupingText 属性上指定文本。

