Visual Studio 2008 Report Designer 的 Toolbox Items 不見了

係囉,2014 年了,我仲用緊 VS2008,大概 VS2008 係我最後用的 Microsoft IDE 吧!哦,VS2010 也有在用,不過比較少。

最近在搞 VS2008 + ReportViewer 10,搞搞吓發覺啲 Toolbox 內的 items 失咗蹤,如下圖:

VS2008 Toolbox Messup

根據 StackOverflow 網友的指示:

My good sense tells me that something got corrupted in your installation.

Here's what I would try before attempting a repair (this happened recently):

I fixed this by going into my profile as follows:

C:Documents and SettingsMYUSERNAMELocal SettingsApplication DataMicrosoftVisualStudio8.0ProjectAssemblies

There are four HIDDEN files in there that make up what is apparently the toolbox cache. If you erase them, they will be re-generated and #13119 will go back to General. As I said, these files appear to be hidden so configure the file explorer accordingly.

Second problem: my User controls disappeared from the toolbox.
I was able to fix it by going into the VS menus:

Visual Studio "Tools" menu

"Options" submenu

"Windows Form Designer" tab "General" tab Set "AutoToolboxPopulate" to "True"

清除了 Toolbox 的 cache,VS2008 恢復正常的畫面,如下:

VS2008 Toolbox Fixed