Visual Studio 2010自定义用户控件和工具箱 [英] Visual Studio 2010 custom user controls and the Toolbox

查看:147
本文介绍了Visual Studio 2010自定义用户控件和工具箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近刚刚将Visual Studio从2005年升级到2010年。我们的解决方案未升级到4.0框架,因为我们的用户群仍在2.0框架上。解决方案加载正常,运行良好,我们已准备好恢复工作。



我们有数百个自定义用户控件。在2005年,我们在我们的解决方案中创建了一个用户控件,它将显示在工具箱中,从那里我们可以将用户控件拖放到任何给定的表单上。



在我们开发过程中,我们注意到我们的自定义用户控件没有显示在Visual Studio设计器的工具箱中。有人遇到过这个问题吗?你怎么能让他们出现?



谢谢!

We just recently upgraded Visual Studio from 2005 to 2010. Our solution was not upgraded to the 4.0 framework, as our user base is still on the 2.0 framework. The solution loads fine, runs fine and we were ready to get back to work.

We have hundreds of custom user controls. When in 2005, we created a user control in our solution, it would show up in the toolbox and from there we could drag & drop the user control onto any given form.

As we were developing, we noticed that our custom user controls are not showing up in the Toolbox in Visual Studios designer. Has anyone ran across this issue? How were you able to get them to show up?

Thanks!

推荐答案

我的一位同事发现了问题。出于某种原因,与Visual Studio 2010和Crystal Reports 2008 SP2的安装存在冲突。我们卸载并重新安装了Crystal Reports 2008 SP2和Crystal Reports 2008运行时,现在我们的自定义用户控件显示在工具箱中。
A colleague of mine found the problem. For some reason, there was a conflict with Visual Studio 2010 and the install of Crystal Reports 2008 with SP2. We uninstalled & re-installed Crystal Reports 2008 with SP2 and the Crystal Reports 2008 runtime and now our custom user controls show up in the Toolbox.


我的一位同事发现了这个问题。出于某种原因,与Visual Studio 2010和Crystal Reports 2008 SP2的安装存在冲突。我们卸载并重新安装了Crystal Reports 2008 SP2和Crystal Reports 2008运行时,现在我们的自定义用户控件显示在工具箱中。
A colleague of mine found the problem. For some reason, there was a conflict with Visual Studio 2010 and the install of Crystal Reports 2008 with SP2. We uninstalled & re-installed Crystal Reports 2008 with SP2 and the Crystal Reports 2008 runtime and now our custom user controls show up in the Toolbox.


这篇关于Visual Studio 2010自定义用户控件和工具箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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