Closing Console Application Windows

  • Thread starter Thread starter wayne calvert
  • Start date Start date
W

wayne calvert

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
 
wayne calvert said:
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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top