Created
July 2, 2013 18:19
-
-
Save ultramcu/5911740 to your computer and use it in GitHub Desktop.
Textbox and Delegate C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public delegate void delegate_write_output(String s); private void write_output(string str) { if (txt_output.InvokeRequired) { txt_output.Invoke(new delegate_write_output(write_output), new object[] { str }); } else { txt_output.AppendText(str + "\r\n"); } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment