Defining the entry point for a C# application

This is the C# equivalent of the Main(String[] args) method in Java:

[STAThread]static void Main() { Application.Run(new MyStartupClass());}

This code usually goes in the class that defines your first windows form.

Posted on 05 Nov 04 by Helen Emerson (last updated on 05 Nov 04).
Filed under .NET

Comments