You are currently viewing the Book: Wrox's Visual C# 2005 Express Edition Starter Kit section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
Location: Kuala Lumpur, Wilayah Persekutuan, Malaysia.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Page 17 - Debugging the First C# Express Project
I'm using Visual C# 2008 Express Edition to work through with this book.
I understand that it's title and the book itself advises us to use Visual C# 2005 Express Edition.
In page 17 under the TRY IT OUT section, under the 3rd set of instructions, i am told to select Debug and then choose Start/ or hit F5.
This is suppose to build, compile and run my application. When i do that
(Visual C# 2008 Express Edition), the console window does not appear, it only appears like for less than a second and then it dissapears. Is this normal? The console only appears when i select Debug and then choose start without debugging/ CTRL + F5.
Why cant i see the console if i follow the book? Is it because i'm using Visual C# 2008 Express Edition and not Visual C# 2005 Express Edition?
Thank you in advance for all your thoughts and views.
Location: Manchester, Greater Manchester, United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hi i had the same problem what you need to do is press ctrl and F5 at the same time then the command prompt will not flash it will stay on your screen so you can see it.
are you sure your code contains this line at the end:
console.ReadLine();//or console.ReadKey()
This code waits until you press ENTER(or any key if ReadKey() selected) then the console disappears.
but if your code contains the line above and the console diappears it is sth strange.
because I myself use Visual C# 2008 Express Edition and by pressing F5 I have my application running and the console does not diappear until the last line of code is executed(pressing ENTER or any key).