C # WinForm inherit form open designer a workaround for the die

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.