c# winform startup object not populated

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings -

I have created a winform application, and need to change which form displays
first when it is launched.

It seems from googling that I should be changing the project, properties,
Startup Object: but this dropdown box only has two entries (not set, and
project.program), neither of which seem to impact which form displays first.

Is there another way to change the first displayed form? What am I missing?

Eugene

thx for any help -
 
Hi,
There must be following code in your project:
static void Main()
{
Application.run(new Form1());
}
Write whichever form name you want to set as startup in place of New Form1()
 
Perfect, thanks Manish. I could see it called Program, but I hadn't realized
that Program was a .cs in my project which had that entry.

Eugene
 
Back
Top