Search code examples
c#.netvb.netwinformssharpdevelop

Where is the main method after converting a vb.net form to c#?


I converted a Vb.Net Form (which was previously written in vb6) with sharpdevelop to c#, now i am getting error that no suitable main method can be found.

Any solutions on this?

best regards


Solution

  • Seem like you'll have to fix the project, or maybe rerun the converter with different settings.

    A simple way to fix could be:

    • create a new WinForms project
    • use Add Existing Item to add your form
    • make it the main Form (Project properties)