将现有组件添加到工具箱

编程入门 行业动态 更新时间:2024-10-10 14:29:37
本文介绍了将现有组件添加到工具箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何将现有组件添加到工具箱? 我右键单击我的项目说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.

更多推荐

将现有组件添加到工具箱

本文发布于:2023-11-24 23:11:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627274.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工具箱   组件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!