Question Where's my form?

solfinker

Well-known member
Joined
Aug 6, 2013
Messages
71
Programming Experience
Beginner
I cannot find in the Solution Explorer Tree a form, but instead sth empty with a VB sign instead of a form icon.
If I "Start" (execute) the solution the form appears as it is called from the code: Form8.Show().

Thank you for your help
 
I'm not sure of the specific details but something in your forms resources has become corrupted. What I've found to work in situations like this is:

1. Add a new WinForms project to your solution.
2. In the Solution Explorer, drag the offending item from the original project to the new project to create a copy.
3. Do what ever else is necessary to get the new project to run and display the form.
4. Delete the for from the original project.
5. Drag the from back to the original project from the new project.
6. Check that the form display correctly in the original project.
7. Delete the new project.

Copying the form to the new project regenerates the resources and makes the form behave correctly in the designer again, or it has whenever I've encountered that issue.
 
No way this way. Thanks a lot.
Luckily I found a copy of the project with the same problem but with the form in question open in a window. I just dragged the items on the form to a new form.
 
Back
Top