简体   繁体   中英

How to recover control deleted from ToolBox In Visual Studio?

I've deleted a tool from ToolBox by accident. How I can get it back if possible?

The standard way is to select the tab in the toolbox and select "Choose Items", this opens a window that allows you a list of controls to add, or you can browse to find the control in it's assembly if it is not there.

You can also restore the toolbox to the original configuration with a Right Click on the Toolbox and select "Reset Toolbox" ( WARNING : This will give you the VS defaults . If you loaded any control libraries, you will lose them and have to reload them with their installer or "Choose Items").

只需右键单击任何工具并选择重置工具箱....您将获得已删除的工具。

If reset toolbox does not help please try the following: - right click on the blank toolbox area and select the option "Add/remove Items"; - click on the browse button; - if 'Windows Forms' controls are missing navigate to: C:\\WINDOWS\\Microsoft.NET\\Framework\\vx.xxxx\\System.Windows.Forms.dll - if 'Web' controls are missing navigate to: C:\\WINDOWS\\Microsoft.NET\\Framework\\vx.xxxx\\System.Web.dll - and press OK.

The controls should then appear on the relevant tabs.

对于Visual Studios或其他可视内容,要重置工具箱和其他工具,请单击窗口然后转到重置窗口布局。

Disclaimer: This is based on memory. Right click on Toolbox, you should get properties/configure or Add Control option. Select that option and a dialog box will appear listing all types (.net, COM) of control. Select the control that has gone missing and it should be back to your toolbox.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM