PC Review


Reply
Thread Tools Rate Thread

Closing Console Application Windows

 
 
wayne calvert
Guest
Posts: n/a
 
      24th Oct 2004
hello all

just started learning vb.net and i'm having problem with console
applications. according to the book i using when i put out the old 'Hello
from Visual Basic' thing i should be able to see it followed by a line
saying 'Press any key to continue'. however my console opens (i think
displays my 'Hello from Visual Basic' ) then closes immediatly.

thanks for any help you can give

wayne


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      24th Oct 2004
"wayne calvert" <wayne-(E-Mail Removed)> schrieb:
> just started learning vb.net and i'm having problem with console
> applications. according to the book i using when i put out the old 'Hello
> from Visual Basic' thing i should be able to see it followed by a line
> saying 'Press any key to continue'. however my console opens (i think
> displays my 'Hello from Visual Basic' ) then closes immediatly.


Add a 'Console.Read()' after the calls to 'WriteLine'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 
Reply With Quote
 
wayne calvert
Guest
Posts: n/a
 
      24th Oct 2004
cheers

"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "wayne calvert" <wayne-(E-Mail Removed)> schrieb:
> > just started learning vb.net and i'm having problem with console
> > applications. according to the book i using when i put out the old

'Hello
> > from Visual Basic' thing i should be able to see it followed by a line
> > saying 'Press any key to continue'. however my console opens (i think
> > displays my 'Hello from Visual Basic' ) then closes immediatly.

>
> Add a 'Console.Read()' after the calls to 'WriteLine'.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Console Application into a Windows Service kimberly.walker@consultant.com Microsoft C# .NET 1 19th Oct 2006 04:49 AM
Console/Windows application wheels619@gmail.com Microsoft C# .NET 2 6th Aug 2006 12:28 AM
Closing console in Windows Applications Giojo Microsoft C# .NET 6 11th Jan 2006 10:43 PM
VB.NET Console Application from Windows 2K SP4 =?Utf-8?B?TXVzdGFx?= Microsoft Dot NET 0 25th Aug 2005 08:04 AM
Console in Windows Application Pengyu Microsoft C# .NET 5 5th Dec 2003 06:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.