C# richtextbox 自动滚动到最后 光标到最后 自动显示最后一行
private void richTextBox1_TextChanged(object sender, EventArgs e) { richTextBox1.SelectionStart = richTextBox1.TextLength; // Scrolls the contents of the control to the current caret position. richTextBox1.ScrollToCaret(); //Caret意思:脱字符号;插入符号; (^) }
有些事情,没经历过不知道原理,没失败过不明白奥妙,没痛苦过不了解真谛。临渊羡鱼,不如退而结网!

浙公网安备 33010602011771号