From 04a0d36183078d66ba97f2b621113bef608731ea Mon Sep 17 00:00:00 2001 From: d3agle Date: Sat, 5 Sep 2015 11:53:30 -0500 Subject: [PATCH] RemoteShell caret positioning fix -Will always scroll to the very bottom of the rtb when text is changed --- Server/Forms/FrmRemoteShell.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/Forms/FrmRemoteShell.cs b/Server/Forms/FrmRemoteShell.cs index 69f7d624..2e0911c0 100644 --- a/Server/Forms/FrmRemoteShell.cs +++ b/Server/Forms/FrmRemoteShell.cs @@ -3,6 +3,7 @@ using System.Windows.Forms; using System.Drawing; using xServer.Core.Helper; using xServer.Core.Networking; +using xServer.Core.Utilities; namespace xServer.Forms { @@ -43,8 +44,7 @@ namespace xServer.Forms private void txtConsoleOutput_TextChanged(object sender, EventArgs e) { - txtConsoleOutput.SelectionStart = txtConsoleOutput.TextLength; - txtConsoleOutput.ScrollToCaret(); + NativeMethods.SendMessage(txtConsoleOutput.Handle, 277, 7, 0); } private void txtConsoleInput_KeyDown(object sender, KeyEventArgs e)