void PrintInstance(string text) { kryptonRichTextBox1.EditorText += text; kryptonRichTextBox1.Select(kryptonRichTextBox1.EditorText.Length, 0); kryptonRichTextBox1.ScrollToEnd(); //kryptonRichTextBox1.ScrollToCaret(); }
void UpdateSecondPanel() { if (contentBrowser1.SelectedItems.Length == 1) { kryptonRichTextBox1.EditorText = (string)contentBrowser1.SelectedItems[0].Tag; } else { kryptonRichTextBox1.EditorText = ""; } kryptonRichTextBox1.Select(0, 0); //kryptonRichTextBox1.ScrollToCaret(); }