Mun
"Jim Heavey" <JimH...@nospam.com> wrote in message
news:Xns9446A84EA3F46J...@207.46.248.16...
As a quick test, I built a small windows app, with a single button, which
would write to the console window when clicked. Like an asp.net
application, it does not run at the command line, and I wanted to see what
happens when you try and send output to, or get input from the console.
private void button1_Click(object sender, System.EventArgs e)
{
MessageBox.Show(this, "starting");
Console.WriteLine("Hello World");
Console.ReadLine();
MessageBox.Show(this, "ended");
}
No console window opened, and both the "starting" and "ended" message boxes
displayed without any problems. Hence, I would guess that the compiler
strips out the Console... lines out as they serve no purpose in a windows or
asp.net application.
Mun
"Jim Heavey" <JimH...@nospam.com> wrote in message
news:Xns9446E4794FF4Ji...@207.46.248.16...