コード例 #1
0
 //private void PostFrameCallback()
 #endregion
 #region Tool Methods
 public void SetStatusLine(string message, int line, Color?fg)
 {
     if (WindowState != FormWindowState.Minimized)
     {
         while (StatusTextBox.Lines.Length <= line)
         {
             StatusTextBox.AppendText(Environment.NewLine);
         }
         StatusTextBox.SelectionStart  = StatusTextBox.GetFirstCharIndexFromLine(line);
         StatusTextBox.SelectionLength = StatusTextBox.Lines[line].Length;
         StatusTextBox.SelectionColor  = fg ?? StatusTextBox.ForeColor;
         StatusTextBox.SelectedText    = message;
     }
 }