Click here to Skip to main content
16,023,224 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Thanks in advanced
......................
..............................
..............................
Posted

In your solution you should have a file called Program.cs if you open it, it should have the following in it.
C#
static void Main()
{
  Application.EnableVisualStyles();
  Application.SetCompatibleTextRenderingDefault(false);
  Application.Run(new Form1());
}

To change the form which opens as the start form change the line Application.Run(new Form1()); where you change Form1 to the name of the form you want to open on application start.
So if I have a form called Parent1 and I want to have it open when my application starts I would have;
C#
static void Main()
{
  Application.EnableVisualStyles();
  Application.SetCompatibleTextRenderingDefault(false);
  Application.Run(new Parent1());
}

Leave the rest of the file alone.
 
Share this answer
 
v2
I would suggest you pick up a good C# book and start from there.
 
Share this answer
 
If you're so new, buy a book, and bookmark www.google.com. You've been told exactly how to do this, but you should have some resources. In fact, you should be in a course and be talking to teachers. If you're just teaching yourself, it will take longer before you're able to write code anyone in their right mind would pay for.
 
Share this answer
 
Since the question is answered, I soon expect "next step" question from you.
"i am new developer"
Buy some books dude and start reading.
 
Share this answer
 
program files -> Microsoft Visual Studio 2008->Microsoft Visual Studio->
when click this one page will be Appear in that select the create project in that select laguage here select the window application give new name click ok by u one form
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900