C# in .Net 3.5

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 1
Reputation: Maheen Khalid is an unknown quantity at this point 
Solved Threads: 0
Maheen Khalid Maheen Khalid is offline Offline
Newbie Poster

C# in .Net 3.5

 
0
  #1
34 Days Ago
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,932
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 277
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso
 
1
  #2
34 Days Ago
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();
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 1
Reputation: ZokiManas is an unknown quantity at this point 
Solved Threads: 0
ZokiManas ZokiManas is offline Offline
Newbie Poster
 
0
  #3
33 Days Ago
Originally Posted by Maheen Khalid View 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.
As previously mentioned you are starting Console type application. Instead of using F5 for starting the project, try CTRL+F5. See what will happen.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 91
Reputation: thines01 is an unknown quantity at this point 
Solved Threads: 8
thines01 thines01 is offline Offline
Junior Poster in Training
 
0
  #4
29 Days Ago
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.
Reply With Quote Quick reply to this message  
Reply

Tags
c#, console

Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC