G
Guest
I have a VB app with a form under FW 1.1, sp1. In sub main, I do some setup
processing that may or may not result in some calls to:
Console.Writeline(...)
eventually, I do:
Application.Run(New Form1)
All this works. If the app is run by clicking the app's icon, the console
writes are discarded. If I run from a command prompt window via
app arg1 arg2 | more
I will see the console writes in the command window. But if I run via
app arg1 arg2
the console writes are discarded.
I would like to avoid piping to 'more' if possible. I guess what I want to
do is flush and close stdout before I do Application.Run(New Form1). But
Console.Out.Flush()
and/or
Console.Out.Close()
don't help.
I'm looking for a .net solution - not api's. Also, I have read some info
about making a console app and starting forms from it. I'd rather not go
that way - this app is a windows gui app that has a couple of troubleshooting
command line features. So, is there a .net way to close and flush stdout so
the text is visible in the command prompt window while the windowed app
continues to run?
processing that may or may not result in some calls to:
Console.Writeline(...)
eventually, I do:
Application.Run(New Form1)
All this works. If the app is run by clicking the app's icon, the console
writes are discarded. If I run from a command prompt window via
app arg1 arg2 | more
I will see the console writes in the command window. But if I run via
app arg1 arg2
the console writes are discarded.
I would like to avoid piping to 'more' if possible. I guess what I want to
do is flush and close stdout before I do Application.Run(New Form1). But
Console.Out.Flush()
and/or
Console.Out.Close()
don't help.
I'm looking for a .net solution - not api's. Also, I have read some info
about making a console app and starting forms from it. I'd rather not go
that way - this app is a windows gui app that has a couple of troubleshooting
command line features. So, is there a .net way to close and flush stdout so
the text is visible in the command prompt window while the windowed app
continues to run?