stupid newbie question - set main form

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

Guest

hi,

i am trying to set a form as the form i want to come up when i run the app.
i have 3 forms, and it's starting with the 2nd form. maybe because i created
it first? i can't find a place to set a property or something that will tell
the program which form to run first when calling the app.

thx,
erin
 
No question is stupid. If you are a newbie I suggest searching the ng
archive before posting as some questions keep repeating themselves.
http://groups.google.com/groups?hl=...soft.public.dotnet.framework.compactframework

To answer your question (you haven't said what language you are using so
here is a generic answer).

Go to Project Properties->Common->General and look for the Startup Object

If you have more than one choice, chances are the choices represent your
forms so just choose which one you want to come up first.

If you only have one choice, close the properties window and search your
project for "Application.Run". Notice that it takes an argument. That is the
form that will come up first so just change its name to be whatever you
want.

Cheers
Daniel
 
If you're using C#, find the static Main() implementation (it's in the code
of the first Form you created) and change the call to the startup Form.
 
Back
Top