Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > Book: Wrox's Visual C# 2005 Express Edition Starter Kit
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 9th, 2008, 12:27 AM
Authorized User
 
Join Date: Mar 2007
Location: Kuala Lumpur, Wilayah Persekutuan, Malaysia.
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

Reply With Quote
  #2 (permalink)  
Old June 15th, 2008, 01:37 PM
Registered User
 
Join Date: Jun 2008
Location: Manchester, Greater Manchester, United Kingdom.
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
Reply With Quote
  #3 (permalink)  
Old November 7th, 2009, 12:05 PM
Authorized User
Points: 100, Level: 1
Points: 100, Level: 1 Points: 100, Level: 1 Points: 100, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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...
Reply With Quote
  #4 (permalink)  
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 ^_^.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08: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



All times are GMT -4. The time now is 12:27 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.