Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > Book: Wrox's Visual C# 2005 Express Edition Starter Kit
|
Book: Wrox's Visual C# 2005 Express Edition Starter Kit
This is the forum to discuss the Wrox book Wrox's Visual C# 2005 Express Edition Starter Kit by F. Scott Barker; ISBN: 9780764589553
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Book: Wrox's Visual C# 2005 Express Edition Starter Kit section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2008, 12:27 AM
Authorized User
 
Join Date: Mar 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kennethjaysone Send a message via Yahoo to kennethjaysone
Default 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.

Kenneth

 
Old June 15th, 2008, 01:37 PM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Hope that helps.

Rafeeq

Rafeeq Ibrahim
 
Old November 7th, 2009, 01:05 PM
Authorized User
 
Join Date: Nov 2009
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
Default

Hi

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).

Erfan...
 
Old September 8th, 2010, 04:31 AM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default The Solution :-)

At the end of your code,
put Console.Readkey() as the above post says,
then the computer will wait for u to type one more character
before the console window closes( or flashes thru )
You can also use System.pause(),
but Console.Readkey() does the trick :-)
It does not make any difference if you are using 2005 or 2008 or 2010 !
Cheers, happy coding ^_^.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 17 - Datagrid Updates Project ydv BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 December 27th, 2005 09:06 AM
debugging windows service project sasidhar79 Pro VB.NET 2002/2003 0 August 17th, 2005 04:34 PM
Unable to Compile - page 17 JDGuardia BOOK: Beginning Java 2 1 July 13th, 2003 08:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.