如何将我的组件放入 Visual Studio 工具箱中的新组中?
我创建了一个组件,当我打开解决方案时它会自动显示在工具箱中。它可以放置在窗体上,我可以更改属性等。
当我关闭解决方案并将其安装在工具箱中(选择工具箱项菜单)时,我希望该组件显示在不同的组中(“所有 Windows 窗体”组除外) )。我该怎么做呢?
编辑:我希望我的组件显示在自定义组中,例如“我的组件”。
I have created a component and it is automatically shown in toolbox when I open the solution. It can be placed on form, I can change properties etc.
When I close the solution and install it in toolbox (choose toolbox item menu), I want this component to be shown in a different group (other than "All Windows Forms" group). How can I do it?
EDIT: I want my components to be shown in a custom group such as "My Components".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果要安装完成的组件,可以将程序集复制到
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies
,然后使用组件选项板的上下文菜单添加一个新组并将组件插入到该组中。如果您想创建一个在分发组件时自动执行此操作的“设置”,可以使用一个名为 Visual Studio Toolbox 的工具管理器,您可以使用它在任何开发计算机上安装组件,而无需上述手动复制过程。
不确定这是否是您正在寻找的,但是......
If you want to install the finished component, you can copy the assembly to
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies
and then use the context menu of the component palette to add a new group and insert the component into that group.If you want to create a "setup" that does that automatically if you distribute the component, there's a tool called Visual Studio Toolbox Manager that you can use to install the component on any development machine without the manual copy process described above.
Not sure if that is what you're looking for, however...
您只需使用鼠标将其拖动到所需的组即可。如果要添加新组,请右键单击工具箱窗口并选择“添加选项卡”。
You can simply drag it to the desired group by using the mouse. If you want to add a new group, right click the toolbox window and select "Add Tab".