public static void WriteLine(this TextBox tbDbg, string msg)
        {
            string vbCrLf = "\r\n";
            tbDbg.AppendText(msg + vbCrLf);
        }

        public static void Write(this TextBox tbDbg, string msg)
        {
            tbDbg.AppendText(msg);
        }