Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi,
I deleted Form1 from my project. Whenever I run the project, the deleted form runs first. I changed the starting form to another one. How does this happen? Any idea about this....?
Posted
Comments
bbirajdar 29-Jul-12 14:22pm    
Thousand ways to go wrong..But only one way to go correct..How can we guess unless we see your code?

Since you say that 'deleted' form runs... I guess only way it is possible is if you have old binary with that form in it.

Clean your solution file, delete bin & obj folders. Rebuild your solution file and try.
 
Share this answer
 
Look in the "Program.CS" file - you will find a line of code along the lines of:

C#
Application.Run(new frmMyOldForm());
Change that to reflect your new form and rebuild your project.
 
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