简体   繁体   中英

C# modified custom control wont update in designer

I created a control that inherits the TreeView control. In this new control I've added a property. I've added this new control to my design just fine. Everything works. However, when I edit the code of this new control and build, it updates in the toolbox, but not in the design. The only way I've found to update my design is to physically drag a new instance of the control into the designer and reconfigure it from scratch. Is there a way to tell Visual Studio to update instances to match what is in the toolbox? I

It will not be updated in the designer unless, you rebuild your project. Close the designer where it is hosted and re-open it after building.

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