You need to disable the "Application Framework" on the project settings main page.
The application structure provides its own entry point, which sets up several things that are subsequently used (for example, application events, individual instance checks, etc.), and then simply displays the main form using System.Windows.Forms.Application.Run . This is why you can only provide the main form, not the custom entry point method.
source share