将项目添加到工具箱 [英] Add items to tool box

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

问题描述

嗨!

我想使用Windows Phone的Visual Studio Express Edition进行编程,但是它的工具箱不足以编写程序,我如何才能向该工具箱添加一些工具(例如计时器)?

我试图从c#工具箱中拖动工具来赢得电话开发人员,但这没有用!我的意思是,如果在工具箱的下面写入已添加工具箱项目",但实际上没有添加!

我试图在表单上拖动某些工具或将其复制,但是它也无法正常工作!我去了工具箱的额外工具,但是它没有有用的工具!


我该怎么办?

谢谢
doostl

Hi!

I wanna programming with visual studio express edition for windows phone but its toolbox it''s not enough to write program how can i add some tools for example timer to this tool box?

i tried to drag tools from c# toolbox to win phone developer but it didn''t work! i mean if below of toolbox write ToolBox Item(s) Added but in fact it doesn''t added!

and i tried to drag some tools on the form or copy it but it didn''t work too! and i went to extra tools of toolbox but it didn''t have useful tools!


what should i do?

Thanks
doostl

推荐答案

从工具箱中使用计时器(或任何其他非可视组件)是如此草率!

另外,其中一个计时器已经存在:System.Windows.Forms.Timer,但这是所有.NET计时器中最差的一个,非常不准确.其目的是取悦那些需要非常简单的用法而不是准确性的开发人员.当可以使用线程时,即在大多数情况下,最好避免使用计时器.

我试图从s#工具箱中删除工具以赢得电话开发人员,但没有用!"
那是怎么回事? :-)

开发自定义控件时,当文档窗口中的当前文件显示可使用此控件的上下文时,它们会出现在工具箱上.

—SA
Using a timer (or any other non-visual component) out of toolbox is so sloppy!

Also, one of the timers is already there: System.Windows.Forms.Timer, but this one is the worst of all .NET timers, very inaccurate. The purpose of it is to please developers who need a very simple use, not accuracy. A timer is best avoided when a thread can be used, that is, in most cases.

"I tried to drop tools from s# toolbox to win phone developer but it didn''t work!"
How''s that? :-)

When you develop custom controls, they appear on the tool box when the current file in document windows presents a context where this control can be used.

—SA


Visual Studio Express Edition在某些方面确实受到限制.

我认为使用Express Edition的方式是创建一个具有适当属性的类库(.DLL)(我认为它是ToolboxItemAttribute),以便可以将项目添加到工具箱中.
编译DLL后,您可以创建另一个项目(应用程序),然后手动将该DLL中的组件添加到工具箱中.

由于Express Edition不支持多个项目,因此与专业版相比,手动步骤很多.

然后,它应该照常工作.
Visual Studio Express Edition are really limited in some area like that.

I think the way you would do it with Express edition is to create a class library (.DLL) with the proper attributes (I think it is ToolboxItemAttribute) so that items could be ade to the toolbox.

Once the DLL is compiled, you can create another project (the application) and manually add component from that DLL to the toolbox.

As Express Edition does not support multiple projects, there is a lot of manual step compared to professional edition.

Then it should works as usual.


您可能会使用的另一种解决方法如下.

您可以在表单上拖动另一个组件,然后手动更新代码以改为使用您的类.
Another workaround that you might uses is the following.

You can drag another component on your form and then update the code manually to use your class instead.


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

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