textBox.SelectionStart = textBox.Text.Length;
textBox.ScrolltoCaret();
or
textBox.AppendText();
using System.Runtime.InteropServices;
private const int WM_VSCROLL = 0x115;
private const int SB_BOTTOM = 7;
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SendMessage(intPtr hWnd, int wMsg, inPtr wParam, inPtr IParam);
SendMessage(textBox.Handle, WM_VSCROLL, (IntPtr)SB_BOTTOM, InPtr.Zero);
728x90
반응형
'C#' 카테고리의 다른 글
[Windows Forms 창 흔들기 효과] (0) | 2010.12.31 |
---|---|
[Windows Forms Client 응용 프로그램과 웹페이지 스크립팅 코드 간의 양방향 통신] (0) | 2010.12.31 |
컨트롤의 속성 그룹화 하기 (0) | 2010.12.20 |
밀리세컨 시간동안 대기 (0) | 2010.12.17 |
모니터 영역 사이즈 구하기 (0) | 2010.12.08 |