momol2l
momol2l

Reputation: 1

What does apliction.run mean in visual studio c#

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

Answers (1)

Gusman
Gusman

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

Related Questions