Environmental VS2017 15.5.4,win10
During the development process, it was found that some forms open the designer will die white screen, others will not, ( both run when normal ), seriously affect the development efficiency, after a day of comparative study, finally resolved,
Speculation may be a vs bug, many years ago when the VC program encountered a bug, to Microsoft, Microsoft developers will also blame, here to share the solution, so as not to trample the pit.
Repro method:
1. Parent Form class Form1:form, child form class Form2:form1
2. When you open the subform designer, the subform white screen, sometimes with a mouse click can be restored, if you first open the subform code, and then open the designer will be stuck.
Workaround:
Drag a panel on the subform, set to fill ( Note that you can't leave a little blank, Form2 do not set padding, as long as you set a little card.) ), and then all the new controls are placed on this panel.
Then you can solve the problem.
Original content, reproduced please retain the source
Http://www.cnblogs.com/zhaogaojian/p/8440473.html
C # WinForm inherit form open designer a workaround for the die