Reputation: 1
Hello the project I was working on saved incorrectly or something idk but I wasn't able to access the form design so I had to make it new in a different project and just copy over the code but when I did there was an error for the code
Application.run(new BeatUpADummySim());
The error says: "The type or namespace name 'BeatUpADummySim' could not be found(are you missing a using directive or an assembly reference?)"
What would I need to change to fix it?
Upvotes: 0
Views: 31
Reputation: 15161
Application.Run
launches a form as the principal for your desktop application and keeps it running until the form is closed.
If you have copied that line from other application you must change the type to your main form type.
Upvotes: 1