用户控制装配在不同的项目? [英] User Controls assembly in different projects?

查看:82
本文介绍了用户控制装配在不同的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人对如何在装配中的用户控件存储在多个项目中重复使用的例子吗?

Does anyone have an example on how to store user controls in an assembly for reuse across multiple projects?

我做了大会与我用户控件,但我有一个很大的麻烦,当我试图注册程序集。最后,它的工作,但后来当我试图访问一个事件我有错误对象引用不设置到对象的实例

I made an Assembly with my UserControls, but I had a lot of trouble when I tried to register the assembly. Finally it worked but then when I tried to access an event I had the error "Object reference not set to an instance of an object",

非常感谢。

推荐答案

非常感谢球员对你的答案和时间。我想,我会继续在应对我的所有项目code,因为这是越来越太复杂了,还我发现这篇文章在MSDN中的 http://msdn.microsoft.com/en-us/library/aa651710%28VS.71%29.aspx 基本上说,我们不得不在每个应用程序的单独副本,否则,我必须使用网络自定义控件我的想法是重用那些用户控制,而不是重写它们。现在我要去找我的老板,并杀死了他给我这个任务,让我浪费了3天这个问题! ;)
非常感谢克里斯编辑我的问题,有时我的英语是太可怕了。

thanks very much guys for your answers and time. I think that I'm going to keep coping code in all my projects, cause this is getting too complicated, also I've found this article in MSDN http://msdn.microsoft.com/en-us/library/aa651710%28VS.71%29.aspx basically said that we have to make a separate copy in each application, Otherwise I have to use "Web custom controls" and my idea was to reuse those User controls and not to rewrite them. Now I have to look for my boss and kill him for give me this task and make me waste 3 days with this problem!! ;) Thanks very much Chris for editing my question, sometimes my english is terrible.

这篇关于用户控制装配在不同的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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