Add WriteLine extension method to TextBox

PHOTO EMBED

Mon Jul 25 2022 21:29:08 GMT+0000 (UTC)

Saved by @dhfinch #c# #extensionmethods

        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);
        }
content_copyCOPY