public LogWindow() { InitializeComponent(); NotifyTextWriter NewOut = new NotifyTextWriter(); NewOut.TextWritten += new TextWriteHandler(NewLogText); OldOut = System.Console.Out; System.Console.SetOut(TextWriter.Synchronized(NewOut)); }