//LogMsg窗口自动滚动到最后一行 private void LogMsg_TextChanged(object sender, EventArgs e) { LogMsg.Select(LogMsg.Text.Length, 0); LogMsg.ScrollToCaret(); }