Where is Main() in a windows app

  • Thread starter Thread starter Phill
  • Start date Start date
P

Phill

When you create a Windows App Using Videuakl Studio (c#) There doesn't
seem to be any static Main() method at all. Why is this? Where is the
entry point?
 
Phill said:
When you create a Windows App Using Videuakl Studio (c#) There doesn't
seem to be any static Main() method at all. Why is this? Where is the
entry point?

I think you'll find there is - it may be hidden away in a region
though.
 
There's a static Main() method there. You may have to un-collapse it, but
you'll find it after the "Windows Form Designer generated code" section in
the code view of your startup form.

It contains this call:

Application.Run(new MyForm());

.... substituting of course, the name of your form.

--Bob
 
Back
Top