从Visual Studio Windows窗体设计器隐藏组件 [英] Hide a Component from Visual Studio Windows Forms designer
问题描述
我将要在Visual Studio 2010中开发自定义组件。与之相反,控件组件在运行时和设计时不可见,它们显示在设计器窗口底部的组件面板中。
I'm just about to develop a custom component in Visual Studio 2010. In contrast to controls components are not visible during runtime and in design time they are shown in a component panel at the bottom of the designer window.
我的自定义组件能够创建其他组件,以便将创建的组件链接到我的自定义组件。因为我可以创建很多新组件,所以我想从组件面板中隐藏它们,因为我可以通过自定义控件访问它们。
My custom component is able to create other components so that the created components are linked to my custom component. As I can create a lot of new components I would like to hide them from the component panel as I can access them via my custom control.
是否可以通过编程方式(或根本没有)从组件面板中隐藏组件?
Is it possible to programmatically (or at all) hide components from the component panel?
推荐答案
也许您应该检查组件的选项。有一些选项可以隐藏对象,使其可用等等。要检查选项,只需单击组件
+ Alt + enter 。
Maybe you should check the options of the component. There are a few options to hide the objects, make them available and more. To check the options just click the component
+ Alt + enter.
这篇关于从Visual Studio Windows窗体设计器隐藏组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!