-
-
Notifications
You must be signed in to change notification settings - Fork 24
Form1.cs | write
HackTheDev edited this page May 3, 2021
·
1 revision
This is the simple method used to put text into teh textBox1
Control. Because we need Thread-Save calls, this method exists. Because most of the code is running in another Thread we needed that little "bridge".
if (textBox1.InvokeRequired)
{
textBox1.Invoke(new Action<string>(write), new object[] { text });
return;
}
textBox1.AppendText(text + Environment.NewLine);
Copyright (c) Marcel Schalk - Patreon: Shy Devil