public ServerInteractive() { InitializeComponent(); ConsoleWriter = Console.Out; // Save the current console TextWriter. RedirConsole = new StringRedir(ref this.richTextBox1); Console.SetOut(RedirConsole); // Set console output to the StringRedir clas }
public ServerInteractive() { InitializeComponent(); ConsoleWriter = Console.Out; // Save the current console TextWriter. RedirConsole = new StringRedir(ref this.richTextBox1); Console.SetOut(RedirConsole); // Set console output to the StringRedir clas }