Change application entry point

  • Thread starter Thread starter LunchBox
  • Start date Start date
L

LunchBox

I'm trying to change the file where the application starts. I moved the
main method to the code that I want to start the app and I removed the main
method where it use to be. But now I get an error saying the previous file
does not have a a 'suitable main method'. How do I get VS.Net to recognize
my new file as the starting point?
 
Hi LunchBox,
Did you change in your project's properties the *Startup Object* property?

HTH
B\rgds
100
 
Yeah, just figured out where to change that. For future Google searches,
right click on your project in the solution explorer and select Properties
and look for Startup Object. It will list methods with Main(). Choose the
one you want to be your entry point.

Thanks 100.
 
Back
Top