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.