将现有组件添加到工具箱 [英] Adding existing component to toolbox

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

问题描述



如何将现有组件添加到工具箱?

我右键单击我的项目说AAA并选择现有组件说ABC.cs然后我单击确定。然后ABC.cs被添加到我的项目中。但当我在左侧查看工具箱时,我发现工具箱列表中没有ABC组件?

i我正在使用Visual C#2008

请指导。

谢谢。

Hi,
How to add existing component to toolbox?
i right click my project say AAA and choose the existing component say ABC.cs and then i click ok. then ABC.cs is added to my project. But when i view the Toolbox on my left, i can''t find the ABC component appear in the toolbox list?
i am using Visual C# 2008
Please guide.
Thanks.

推荐答案

如果来自作为解决方案一部分的项目的UserControl,它应该在您构建解决方案后自动显示。它在VS中很奇怪。实际上一次构建和运行项目F5。之后,它应显示在您的工具箱中。
If its a UserControl from a project that is part of your solution it should appear automatically AFTER YOU BUILD the solution. Its an oddity in VS. Actually build and run the project one time F5. After that it should show in your toolbox.


组件由其他人创建。我只是想使用组件,因此我将它添加到我的项目中。但在我添加它之后..我无法从工具箱中看到它。

是我错过的一步吗?
the component is created by others. i just want to use the component thus i add it into my project. But after i add it.. i cant see it from the toolbox.
is it some step that i missed?


@MyMarlboro


这是商业广告你买的组件?或者这是团队成员的事情吗?


我不明白为什么你把它添加到你的项目中。如果它是一个组件,您只需将其添加到工具箱中并在所有项目中使用它。右键单击要添加到的选项卡,然后选择选择项目...。然后选择组件的DLL。


你不应该看到.cs文件作为组件给你的东西。
@MyMarlboro
Is this a commercial component that you bought? Or is this something a team member made?

I don''t understand why you added it to your project. If its a component you can just add it to the tool box and use it in all of your projects. Right-click on the tab that you want to add it to and select "Choose items..." then select the DLL of the component.

You shouldn''t be seeing a .cs file for something given to you as a component.


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

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