Last active
August 29, 2015 14:06
-
-
Save windwp/d14d2a1fb6864a772765 to your computer and use it in GitHub Desktop.
Form sniplet
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 void LogText(string message) | |
{ | |
log_rtb.Invoke(((MethodInvoker)delegate | |
{ | |
log_rtb.AppendText(String.Format("-{0}: \r\n", message)); | |
})); | |
} | |
protected void ClearText() | |
{ | |
if (log_rtb != null) log_rtb.Clear(); | |
} | |
//maximum form size | |
WindowState = FormWindowState.Maximized; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment