RemoteShell caret positioning fix

-Will always scroll to the very bottom of the rtb when text is changed
This commit is contained in:
d3agle 2015-09-05 11:53:30 -05:00
parent 524a682c66
commit 04a0d36183
1 changed files with 2 additions and 2 deletions

View File

@ -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)