Friday, July 31, 2009

A question about C#?

In Visual Studio 2005, the main() method (the program entry point) always resides in a file called "Program.cs." I want to change my program entry point to another file, how do I do this in VS 2005?

A question about C#?
Right-click on the Project and go to Properties.





On the Application tab, you'll see a drop-down list labeled "Startup Object". You can select any class in your project that has a static Main() method from that drop-down.


No comments:

Post a Comment