Visual Studio 2010 工具箱控件已禁用

发布于 2024-12-27 11:56:26 字数 341 浏览 4 评论 0原文

ASP.NET 应用程序开发(设计模式或源)中的 VS 2010 工具箱未显示所有控件(显示 HTML 和报告控件),我可以通过右键单击查看所有控件(显示全部),但它们灰显或不活动< /强>。

我已经在VS命令行中使用devnev.exe重置,重新安装了VS,删除了C:\Users\Ramzan\AppData\Local\Microsoft\VisualStudio\10.0中的四个隐藏文件 扩展名为 .tbd,一切都是徒劳。

这件事让我发疯。我有另一台机器,那里一切正常。
非常感谢任何帮助。

VS 2010 Toolbox in ASP.NET application development (design mode or source) is not showing all controls (showing HTML and reporting ones), I can see all by right click (Show all) but they are greyed out or inactive.

I have used devnev.exe in VS Command line to reset, have reinstalled VS, have deleted the four hidden files in C:\Users\Ramzan\AppData\Local\Microsoft\VisualStudio\10.0 with extension .tbd, all in vain.

This thing is driving me mad. I have another machine and everything works fine there.
Any help much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(15

Bonjour°[大白 2025-01-03 11:56:26

不知道这是否适用;但我禁用了工具箱中的所有控件;您可以看到它们,但它们已被禁用 - 这在 Visual Studio 2010 中。我右键单击工具箱项目,然后重置工具箱,然后启用它们。请注意,您可能会丢失添加的任何自定义控件。

Don't know if this applies; but I had all controls in the toolbox disabled; you could see them but they were disabled - This in Visual Studio 2010. I right click on a toolbox item then reset toolbox and then they are enabled. Note that you may lose any custom controls you added.

剩余の解释 2025-01-03 11:56:26

也许您的项目正在运行。停止项目,然后您的工具栏项目将变为启用。

Probably your project is RUNNING. STOP the project then your toolbar items will become enable.

°如果伤别离去 2025-01-03 11:56:26

右键单击工具箱并取消选中“显示全部”(如果选中)

Right click in toolbox and remove check from "SHOW ALL" (if checked)

月下凄凉 2025-01-03 11:56:26

这让我发疯了两天。在选择项目菜单中,检查了我的第 3 方控件(CrystalReportsViewer)。重置工具箱没有执行任何操作来启用它们。我的解决方案是将目标框架从.NET Framework 4 Client Profile更改为完整版本.NET Framework 4,客户端配置文件似乎是优化版本的子集客户端应用程序不支持我的控件或仅使用对其他第 3 方 .dll 库的引用。此问题仅适用于 .NET 3.5 和 4.0,.NET 4.5 已停止使用客户端配置文件

This was driving me crazy for a pair of days. In the choose items menu my 3rd party controls (CrystalReportsViewer) were checked. Reset toolbox did nothing to enable them. My solution was changing the target framework from .NET Framework 4 Client Profile to the full version .NET Framework 4, seems the client profile which is a subset of the version optimized for client applications does not support my controls or just using references to other 3rd party .dll librarys. This issue should only be for .NET 3.5 and 4.0, Client Profile is discontinued for .NET 4.5

不顾 2025-01-03 11:56:26

我遇到了同样的问题,并在 3 天后修复了它:

  1. 重置工具箱(不起作用)
  2. 关闭并重新打开解决方案(不起作用)
  3. 关闭并重新打开 VS(它起作用了!)

I had the same problem and fixed it now after 3 days:

  1. reset toolbox (not worked)
  2. close and reopen the solution (not worked)
  3. close and reopen the VS (it worked!)
有深☉意 2025-01-03 11:56:26

经过很长时间的谷歌搜索,大部分答案 - 围绕

  1. 重置工具栏
  2. 删除 .tbd 文件
  3. 从 C:\Users(your user)\AppData\Local\Microsoft\VisualStudio\11.0使用 devenv.exe /SafeMode & devenv.exe /重置设置。

他们都不适合我锻炼,让我病得更重。

我做了一些有效的事情,并且认为如果对某人有帮助,就值得分享。

我按照上述所有步骤进行操作,但失败了。我做了第 1 步和第 2 步。 2 打开我的项目(在 VS 2012 中)并

  • 右键单击“工具箱”>选择项目>按下重置>好的。
  • 然后再次右键单击“工具箱”>“添加选项卡> “给它起个名字”>然后再次
  • 重置工具箱

有一些屏幕闪烁/闪烁 - 一些加载。

令我惊讶的是,灰色生活(灰色控件)现在可用了。

希望这对像我这样的人有帮助! :)

After a long time googling , and mostly all answers - revolving around

  1. Reset Toolbar
  2. Delete .tbd files from C:\Users(your user)\AppData\Local\Microsoft\VisualStudio\11.0
  3. Using devenv.exe /SafeMode & devenv.exe /ResetSettings.

None of them working out for me, making me more sick.

There is something I did which worked and thought it's worth sharing if it helps someone.

I followed all of the above steps, failing . I did Step 1 & 2 with my project (in VS 2012) open and

  • Right Click on Toolbox > Choose Items > Pressed Reset > ok.
  • Then again, Right Click on Toolbox > Add Tab > 'gave it some name' > then again
  • Reset Toolbox

There was some screen flash/flickering - some loading .

And to my surprise the Grey life ( grey controls ) were now available .

Hope this helps someone like me! :)

删除会话 2025-01-03 11:56:26

这对我有用..

如何完全重置工具箱并启用 Visual Studio 重建它从头开始

  1. 关闭 Visual Studio;

  2. 打开“c:\Users\\AppData\Local\Microsoft\VisualStudio\10.0”(Windows 7)文件夹并删除所有.TBD文件;

  3. 运行“regedit”工具。为此,请单击“开始”菜单中的“运行”项,然后键入不带引号的“regedit”;

  4. “HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstaller_AssemblyFoldersExCache”和“HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstallerCache”键;

  5. 删除这些键中的所有内容,使其为空;

  6. 再次运行 Visual Studio 并等待,直到它重新创建工具箱中的所有项目。

This worked for me..

How to completely reset the Toolbox and enable Visual Studio to rebuild it from scratch

  1. Close Visual Studio;

  2. Open the "c:\Users\\AppData\Local\Microsoft\VisualStudio\10.0" (Windows 7) folder and remove all the .TBD files;

  3. Run the "regedit" tool. For this click the "Run" item in the Start menu and type "regedit" without quotation marks;

  4. Find the "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstaller_AssemblyFoldersExCache" and "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstallerCache" keys;

  5. Remove everything from these keys leaving them empty;

  6. Run Visual Studio again and wait until it recreates all items in the Toolbox.

时间海 2025-01-03 11:56:26

如果您正在使用 WPF 应用程序,并且您的 Xaml 使用 打开 xml,那么请确保右键单击视图设计器,启用工具箱控件。 (工具箱控件似乎仅在设计器模式下处于活动状态(启用))。至少我就是这样。

If you are working in WPF application and your Xaml is opened with xml, then make sure you right click and view designer, to get your toolbox controls enabled. (Toolbox controls seem to be active(enabled) only in designer mode). At least that was the case with me.

水中月 2025-01-03 11:56:26

我知道这已经很旧了,但我刚刚遇到了同样的问题,这就是我所做的:

  1. 单击“数据流”
  2. ,右键单击该窗口中的任意位置,
  3. 选择“SSIS 工具箱”。

希望这会对某人有所帮助。

I know this is old but I just encountered the same problem and here is what I did:

  1. Click on Data Flow
  2. Right click anywhere in that window
  3. Select SSIS Toolbox.

Hope this would help someone.

油饼 2025-01-03 11:56:26

我为我工作执行以下步骤:

  1. 重置工具箱(在工具箱中右键单击 - >重置工具箱)
  2. 添加具有任何名称的新选项卡(在工具箱中右键单击 - >添加选项卡)
  3. 重置工具箱(在工具箱中右键单击 - >重置工具箱)重置工具箱)

I worked for me doing the following steps:

  1. Reset Toolbox (Right click in Toolbox->Reset Toolbox)
  2. Add a new tab with any name (Right click in Toolbox->Add Tab)
  3. Reset Toolbox (Right click in Toolbox->Reset Toolbox)
筱武穆 2025-01-03 11:56:26

对我有帮助的是将项目类型从 Windows 应用程序更改为类库 - 然后(重新构建并重新打开后...)我启用了所有控件。

What helped me was changing Project type from Windows Application to Class Library - then (after re-build and reopen...) I got all Controls Enabled.

物价感观 2025-01-03 11:56:26

对自定义控件的作用是首先从我的基础项目中删除该控件。然后我必须将自定义控件本身作为一个单独的解决方案拉出并重新编译它。我必须确保它被编译为类库而不是 Windows 应用程序。我必须确保它是用 Framework 4 编译的(与我的基本解决方案相同),并且所有子控件和项目也都使用 Framework 4。当我整理完所有这些内容后,我回到我的基本项目并添加新编译的控件,果然它已启用。

我希望这对某人有帮助。

What did it for me on a custom control was to first remove the control from my base project. Then I had to pull up the custom control as a separate solution by itself and recompile it. I had to make sure that that it was compiled as a class library and not as a windows application. I had to make sure that it was compiled with Framework 4 (same as my base solution) and that all sub controls and projects were also using framework 4. Once I got all of those things sorted out I went back to my base project and added the newly compiled control and sure enough it was enabled.

I hope this helps someone.

同展鸳鸯锦 2025-01-03 11:56:26

我尝试了上述所有方法仍然对我不起作用。我正在开发一个 Windows 应用程序,之后我在 Visual Studio 上启动了 Web 应用程序编码,之后每当我打开 Visual Studio 时都会出现此问题。我正在使用 Visual studio 2015。因此,我在工具箱面板内右键单击并选择“选择选项”,然后在“.Net Framework”组件选项卡下选中了程序集名称为“System”的所有复选框。 windows.forms' 现在对我有用。

I tried all the above mentioned still not working for me. I was working on a windows application after that I have started the web application coding on visual studio after that whenever I was opening the Visual studio this problem was occurring. I am using Visual studio 2015. So what I did, I have right-click inside the toolbox panel and selected 'choose option' then under '.Net framework' components tab I have checked all check boxes for which assembly name is 'System.windows.forms' It is working for me now.

末骤雨初歇 2025-01-03 11:56:26

确保当前打开的解决方案平台确实支持您需要的控件。
例如,我的问题是,我尝试将“SqlConnection”控件添加到 .NET 6.0 应用程序。
有一次,我创建了一个“.NET Framework Windows Form”项目,“SqlConnection”控件变得可用

Make sure the currently opened solution platform actually supports controls you need.
My problem was, for example, that I tried to add 'SqlConnection' control to .NET 6.0 application.
Once, I created a '.NET Framework Windows Form' project 'SqlConnection' control became available

素罗衫 2025-01-03 11:56:26

我在VS2022版本17.5.1企业版上遇到了这个问题。我解决如下:

  1. 右键单击工具箱菜单,选择“选择项目...”

  2. 在“.NET Framework 组件”选项卡中,我取消选中除那些属于 System.Windows.Froms 的控件之外的所有控件

  3. 单击“确定”关闭对话框

之后,所有 WinForms 禁用的控件均已启用

I had this problem with VS2022 version 17.5.1 enterprise edition. I solved it as follows:

  1. Right click the toolbox menu, select "choose items..."

  2. In the ".NET Framework Components" tab, I unchecked all controls except those that belong to System.Windows.Froms

  3. Close the dialog with OK

After that all WinForms disabled controls were enabled

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文