Home » FAQ » WinForms » Tips » How can I instruct the compiler to use the Main method in Class2 instead of Class1?
In the project’s General Properties, specify Class2 as the ‘Startup Object’. The dropdown contains all classes with a Main method specified.
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with