从 Visual Studio Windows 窗体设计器隐藏组件
我正要在 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您应该检查该组件的选项。有一些选项可以隐藏对象、使其可用等等。要检查选项,只需单击
组件
+ Alt + 输入。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.