getting user input via console in c#

Posted by every_answer_gets_a_point on Stack Overflow See other posts from Stack Overflow or by every_answer_gets_a_point
Published on 2010-04-12T00:03:57Z Indexed on 2010/04/12 0:13 UTC
Read the original article Hit count: 524

Filed under:
|

i have this code in a button in a wpf in c#:

private void button1_Click(object sender, RoutedEventArgs e)
        {
            Console.Write("What is your name?: ");
            Console.Write("Hello, {0}! ", Console.ReadLine());
            Console.WriteLine("Welcome to the C# Station Tutorial!"); 
        }

when i click the button, nothing happens. why doesn't the console appear?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf