Skip to content

Instantly share code, notes, and snippets.

@ultramcu
Created July 2, 2013 18:19
Show Gist options
  • Save ultramcu/5911740 to your computer and use it in GitHub Desktop.
Save ultramcu/5911740 to your computer and use it in GitHub Desktop.
Textbox and Delegate C#
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