Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / September 2004

Tip: Looking for answers? Try searching our database.

console application question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vh - 24 Sep 2004 22:33 GMT
Hi All,
I am writing a c# console application in VS.net, every time I run the
program, the console showed and disappeared very quickly, I can't see what
is displayed. Are there some settings that let the window stay there after
my program terminates? I know I can write my program to wait for a key
pressed, or set a break point at the end my main, but are there simpler ways
out there? It seems a simple problem, but I can't find any settings about
this.

thanks
min
Chua Wen Ching - 26 Sep 2004 14:37 GMT
Hi vh,

It only happens on debug mode.. it is common

Just place this line of code at the end of your console app

Console.ReadLine();

or you can choose not to debug, and the window will be there

Have Fun!

Cheers.

> Hi All,
> I am writing a c# console application in VS.net, every time I run the
[quoted text clipped - 7 lines]
> thanks
> min
Danny Springer - 26 Sep 2004 16:21 GMT
> Hi All,
> I am writing a c# console application in VS.net, every time I run the
[quoted text clipped - 4 lines]
> out there? It seems a simple problem, but I can't find any settings about
> this.
You can start it with Ctrl-F5 (Start without Debugging).

Regards,
Danny

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.