944,123 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1687
  • C# RSS
Oct 26th, 2009
0

C# in .Net 3.5

Expand Post »
HEy,
I am new to C# and dont know much about it. I am facing a problem while running my code in Visual Studio 2008. The problem is that the screen disappears immediately when the program ends. please help me. Thanks in advance.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Maheen Khalid is offline Offline
1 posts
since Jun 2008
Oct 26th, 2009
1
Re: C# in .Net 3.5
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
ddanbe is offline Offline
3,740 posts
since Oct 2008
Oct 27th, 2009
0
Re: C# in .Net 3.5
HEy,
I am new to C# and dont know much about it. I am facing a problem while running my code in Visual Studio 2008. The problem is that the screen disappears immediately when the program ends. please help me. Thanks in advance.
As previously mentioned you are starting Console type application. Instead of using F5 for starting the project, try CTRL+F5. See what will happen.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ZokiManas is offline Offline
1 posts
since Oct 2009
Oct 30th, 2009
0
Re: C# in .Net 3.5
If you're debugging, you can set a breakpoint on the last closing curly brace on your "Main" and it will allow you to see the output before the window closes.
Featured Poster
Reputation Points: 304
Solved Threads: 277
Posting Virtuoso
thines01 is online now Online
1,695 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: C#
Next Thread in C# Forum Timeline: minmizing form size less than what it allows





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC