I have a problem that the designer won't display forms. It fails with the error Designer giving a warning as follows:
How can I fix this problem ?
I had the same problem after changing the namespace of the project. After that I received the same error message and was looking in this post and none of the solutions worked for me. Now that I have found the solution, I write it here to guide other developers struggeling with the same problem.
The reason of the problem was that changing the namespace didn't change the "Default namespace".
To change the "Default namespace":
This can happen if your project references itself.
Visual Studio randomly does this automatically when some controls/forms defined in the project use other (user-)controls defined in this same project.
You can safely remove the self-reference in the project's "References" node.
Then rebuild and the designer should reload without these errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With