C
CSharper
I have an application where if the user calls the program with command
line, I want the program to run as a console application and when
called with out parameters it need to launch the windows application.
So I created a windows application and the in the main method I did a
check to see if args has length then not to create the form otherwise
create form. It worked fine. Couple of questions;
1. When I run the program, I get the command prompt back immediatly
instead of it to complete the process. I know this because I create
file and as I press F5 , I can see the file size is getting
increamented. Please help me, how to make this program wait for the
process to complete?
2. Why console.writeline doesn't display the message in the dos box in
WinForm program??
Thanks a lot.
line, I want the program to run as a console application and when
called with out parameters it need to launch the windows application.
So I created a windows application and the in the main method I did a
check to see if args has length then not to create the form otherwise
create form. It worked fine. Couple of questions;
1. When I run the program, I get the command prompt back immediatly
instead of it to complete the process. I know this because I create
file and as I press F5 , I can see the file size is getting
increamented. Please help me, how to make this program wait for the
process to complete?
2. Why console.writeline doesn't display the message in the dos box in
WinForm program??
Thanks a lot.