I'm trying to port some code from a simple command line app to a Windows Based app. I'm having a small problem. I'm trying to get messages to go to a textbox instead of the command line. The code previously used a statement like this
How can I get this to a textbox? I've tried the following but it doesn't work.
Can someone clue me in?
Thanks
Code:
Console.WriteLine = ("Error trying to get local address {0}" + ex.Message);
How can I get this to a textbox? I've tried the following but it doesn't work.
Code:
textBox1.Text = ("Error trying to get local address {0}" + ex.Message);
Can someone clue me in?
Thanks