VS2010 Winforms Usercontrol Changes Not Displayed in Parent Form

I created a series of usercontrols. Drag one of the controls into the main form. It shows OK. He returned and made changes to the design of the user control. Restored project. Purified project. manually deleted all project executables, including the obj folder. The change is still not displayed on the usercontrol located in the main form. Dragging a new control instance from the tool window shows only the old version of the control. I completely removed the controls from the toolbar, and adding them again fixed the problem, but of course I do not need to do this every time I make changes? All user controls are in the same assembly as the main form. Tool> Options> Windows Forms Designer>Autoobject to fill Sets to true. Any ideas are most appreciated. thank

+3
source share
2 answers

Do not add the control to the toolbar yourself. This places a copy of the assembly in a private directory. Yes, this copy is not updated automatically, you get the old control.

Rely on the "Auto toolbox fillulate" setting. It automatically adds all the controls that you have in the loaded projects (s) to the toolbar. The added controls are at the top of the toolbar.

+4
source

I agree with answer 1 that this is what should happen, and often it happens. But it does not always work and will work partially.

For example, my current solution.

Project 1 ToolTester - .

Project 2 UltimateFileFinder - .

2 ( ) UltFilesView UltSlideShow , , , ToolsTester, .

UltPanel, . .

, . .

Visual Studio ( ) , , , .

, , , , , , , , .

0

Source: https://habr.com/ru/post/1765792/


All Articles