Hello Maheed, welcome on this site.
Seems like you where trying to start what is called a Console application. You have to put as a last line of code a "read" statement, so that the console window stays on screen. I usually use Console.ReadKey();
Reputation Points: 2035
Solved Threads: 645
Senior Poster
Offline 3,740 posts
since Oct 2008