Click here to Skip to main content
15,908,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
visual studio lag when text a code in coding window then switch between coding window and desin Form
it takes about 10 seconds to open design Form ..
note : the main form that causes the lag to open , has many tools
any solution please 😊😁

What I have tried:

i tried many solutions from google but not works
Posted
Updated 10-Feb-19 8:20am

1 solution

This probably occurs because you have a lot of nested usercontrols, where I work we have the same problem.
What you can do is to try to use less nested controls, or do not define the controls in the designer but programmatically in code.
A trick can be to use a "placeholder", which can be just a simple panel, and then replace that in your code by the real control.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900