Discussion:
Console application closes
(too old to reply)
Candace
2005-12-22 17:24:03 UTC
Permalink
I am creating very simple console applications using Visual Basic in Visual
Studio .NET. When I run the program (using the start button in the Visual
Studio IDE) the program runs but it immediately closes the DOS window and
therefore does not present me with an option to "press any key to continue".
So I am not able to see the output from the program I created because the
program just runs
and immediately terminates. Why is this happening? How can I get the DOS
window to remain open and give me the option to "press a key to continue"
when I am done viewing the output from my program?
H-Man
2005-12-22 20:48:32 UTC
Permalink
Post by Candace
I am creating very simple console applications using Visual Basic in Visual
Studio .NET. When I run the program (using the start button in the Visual
Studio IDE) the program runs but it immediately closes the DOS window and
therefore does not present me with an option to "press any key to continue".
So I am not able to see the output from the program I created because the
program just runs
and immediately terminates. Why is this happening? How can I get the DOS
window to remain open and give me the option to "press a key to continue"
when I am done viewing the output from my program?
I'm not a .NET expert by any means, but I think you need to shell to the
command line first if you want this to happen be default. You could also
use your application to wait for use input before closing. As you are
wrting the program you have this control.
--
HK
Michael Cole
2005-12-22 23:33:04 UTC
Permalink
Post by Candace
I am creating very simple console applications using Visual Basic in
Visual Studio .NET.
--
<response type="generic" language="VB.Net">
This newsgroup is for users of Visual Basic version 1.0 (VB-DOS)
and earlier and not the misleadingly named VB.Net
or VB 200x. Solutions, and often even the questions,
for one platform will be meaningless in the other.
When VB.Net was released Microsoft created new newsgroups
devoted to the new platform so that neither group of
developers need wade through the clutter of unrelated
topics. Look for newsgroups with the words "dotnet" or
"vsnet" in their name. For the msnews.microsoft.com news
server try these:

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb

</response>

--
Regards,

Michael Cole
Stephen Howe
2005-12-28 13:37:43 UTC
Permalink
Post by Candace
I am creating very simple console applications using Visual Basic in Visual
Studio .NET.
Right. So why not post to one of the 49 .NET newsgroups (this newsgroup is
NOT a .NET newsgroup, it is for VBDOS 1.0 a DOS (pre-Windows) application)?
It is tiring reading posts by clueless people developing for .NET posting in
the wrong newsgroup.
One wonders if .NET screws up their IQ. Certainly they should give up
programming if they can't even post to the right newsgroup.

Newsoups for .NET all start

microsoft.public.dotnet.*

I think you want one of

microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.vb.controls
microsoft.public.dotnet.languages.vb.data
microsoft.public.dotnet.languages.vb.upgrade

Stephen Howe

Continue reading on narkive:
Loading...