Live Chat Icon For mobile
Live Chat Icon

How can I instruct the compiler to use the Main method in Class2 instead of Class1?

Platform: WinForms| Category: Tips

In the project’s General Properties, specify Class2 as the ‘Startup Object’. The dropdown contains all classes with a Main method specified.

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.