如何在Visual Studio 2008中刷新工具箱 [英] How do I refresh the toolbox in Visual Studio 2008

查看:201
本文介绍了如何在Visual Studio 2008中刷新工具箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用C#在Visual Studio 2008中处理Windows窗体

Working on windows forms in Visual Studio 2008 with C#

所以我的Windows Form Control行为不符合我的要求.所以我超载了Size属性.

So I had a windows Form Control that wasn't behaving the way I wanted. So I overloaded the Size property.

坏主意.一切都坏了.太可怕了我无法再将此控件添加到窗体中.这有点问题.

Bad idea. Everything broke. Horribly. I could not add this control to a form anymore. This was slightly problematic.

因此,我删除了有问题的代码,然后重新编译.问题解决了...对吧?

So I removed the offending code, and recompiled. Problem solved... right?

没那么多.我无法将此表单添加到代码STILL中.它以前曾经工作过.我会检查代码中是否有可能进行的任何更改,然后再次重新编译,而没有任何更改.

Not so much. I can't add this form to my code STILL. And it was working before. I scour the code for any changes I could have made, recompile again, and nothing changes.

所以我得出结论,我的代码是正确的,我的DLL是原始的,只是没有重新加载工具箱.

So I conclude, that my code is correct, my DLL is pristine, and it's just not reloading the toolbox.

关闭visual studio,将其打开,一切正常. (嗯,就像我破坏一切之前所做的那样)

Close visual studio, open it back up, and everything works just fine. (well, works like it did before I broke everything)

有没有办法在不关闭2008年的情况下做到这一点?因为真的很烦人.

Is there a way to do this WITHOUT closing out 2008? Because it's really quite annoying.

推荐答案

尝试关闭解决方案&再次打开.

Try closing the solution & opening it again.

或关闭工具箱标签&再次通过View-> Toolbox

Or closing the toolbox tab & again enabling it via View-> Toolbox

这篇关于如何在Visual Studio 2008中刷新工具箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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