public override void Write(char value)
 {
     base.Write(value);
     if (this.output.InvokeRequired)
     {
         AppendCallback c = new AppendCallback(output.AppendText);
         output.Invoke(c, new Object[] { value.ToString() });
     }
     else
     {
         output.AppendText(value.ToString());
     }
 }
        public void Append(string msg)
        {
            if (msg.Length == 0) return;

            if (this.Editor.InvokeRequired)
            {
                AppendCallback d = new AppendCallback(Append);
                this.Invoke(d, new object[] { msg });
            }
            else
            {
                this.Editor.AppendText(msg);
                UpdateCaret();

                InputStart = this.Editor.TextLength;
            }
        }
        public void Append(string msg)
        {
            if (msg.Length == 0)
            {
                return;
            }

            if (this.Editor.InvokeRequired)
            {
                AppendCallback d = new AppendCallback(Append);
                this.Invoke(d, new object[] { msg });
            }
            else
            {
                this.Editor.AppendText(msg);
                UpdateCaret();

                InputStart = this.Editor.TextLength;
            }
        }
Example #4
0
 public static void AppendText(RichTextBox box, string text, Color color)
 {
     AppendCallback d = new AppendCallback(AppendTextInternal);
     box.Invoke(d, new object[] { box, text, color } );
 }
Example #5
0
        public static void AppendText(RichTextBox box, string text, Color color)
        {
            AppendCallback d = new AppendCallback(AppendTextInternal);

            box.Invoke(d, new object[] { box, text, color });
        }