在c#中将我的项目添加到工具箱中 [英] Add my item into toolbox in c#

查看:80
本文介绍了在c#中将我的项目添加到工具箱中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有货币文本框的代码,我想知道如何使它像工具箱中的项目以及如何将其添加到工具箱中?

尊重太空人

Hi I have code for currency textbox and i want to know how to make it like items in toolbox and how to add it into toolbox?
With Respect "Spaceman"

推荐答案

如果您已将其创建为UserControl,那么一旦您构建了没有错误的解决方案,它就会自动添加到工具箱中。

如果没有出现,请使用菜单栏:工具...选项... Windows窗体设计器...常规,然后选中AutoToolboxPopulate属性。将其设置为True并重建您的项目。它应该出现在列表的顶部或底部(不确定哪个,我将其保存在单独的DLL中,它出现在顶部)。
If you have created it as a UserControl, then once you build the solution without errors it should automatically be added to the toolbox.
If it doesn't appear, then use the menu bar: "Tools...Options...Windows Forms Designer...General" and check the "AutoToolboxPopulate" property. Set it to "True" and rebuild your project. It should appear at the top or bottom of the list (not sure which, I keep mine in a separate DLL, which appears at the top).


这篇关于在c#中将我的项目添加到工具箱中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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