简体   繁体   English

将自定义控件添加到Visual Studio工具箱?

[英]Adding custom control to Visual Studio toolbox?

How can I add my custom WinForm button to the Toolbox in Visual Studio? 如何在Visual Studio的工具箱中添加自定义WinForm按钮? I'm using Visual Studio 2008. 我正在使用Visual Studio 2008。

Assuming WinForms, 假设使用WinForms,

right-click on the Toolbox and select "Choose items". 右键单击工具箱,然后选择“选择项目”。 Click the Browse button and select the DLL with your button. 单击浏览按钮,然后使用您的按钮选择DLL。

Right mouse click it, click "Choose Items...". 右键单击它,然后单击“选择项目...”。 When this has loaded, click Browse. 加载完成后,单击“浏览”。 Locate your DLL/EXE and click Open. 找到您的DLL / EXE,然后单击“打开”。 It should then appear in the listbox. 然后,它应出现在列表框中。 Select it (if not selected already) and click OK. 选择它(如果尚未选择),然后单击“确定”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM