RichTextBox控件如何实现自动向下滚屏? SendMessage(AHandle, WM_VSCROLL, SB_BOTTOM, null);AHandle为实例的句柄。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //参考下如下的代码:private void button1_Click(object sender, System.EventArgs e){ SelfSrcoll(this.richTextBox1.Handle);}private const int WM_VSCROLL = 0x115;private const int SB_LINEUP = 0;private const int SB_LINEDOWN = 1;private const int SB_PAGEUP = 2;private const int SB_PAGEDOWN = 3;[System.Runtime.InteropServices.DllImport("user32.dll")]public static extern int SendMessage(IntPtr hwnd ,int wMsg ,int wParam ,int lParam );[System.Runtime.InteropServices.DllImport("user32.dll")]public static extern bool UpdateWindow(IntPtr hWnd);private void SelfSrcoll(IntPtr handle){ SendMessage(handle, WM_VSCROLL, SB_PAGEDOWN,0); UpdateWindow(handle);} 还如如下可参考用的数据:private const int SB_TOP = 6;private const int SB_BOTTOM = 7; jun_ly(小鱼儿) 的是正解 关于wpf的mediaElement.SpeedRaito设置为负数 循环冗余校验(CRC)算法 用C#如何实现类似WinAvi的界面 listview可以直接排序吗?如何设置? 这个问题真的和难吗? 关于c#入门书籍的问题 居然有如此面试的公司!!(哎,不知该说些什么) c#将数据插入数据库表中问题 指针操作和byte类型问题。。在线等待。100分。。。 在C#中做水晶报表时,字段视图不可选,怎么解决? 请问关于上传的问题! 斑竹 我命休矣
private void button1_Click(object sender, System.EventArgs e)
{
SelfSrcoll(this.richTextBox1.Handle);
}private const int WM_VSCROLL = 0x115;
private const int SB_LINEUP = 0;
private const int SB_LINEDOWN = 1;
private const int SB_PAGEUP = 2;
private const int SB_PAGEDOWN = 3;[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern int SendMessage(IntPtr hwnd ,int wMsg ,int wParam ,int lParam );[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern bool UpdateWindow(IntPtr hWnd);private void SelfSrcoll(IntPtr handle)
{
SendMessage(handle, WM_VSCROLL, SB_PAGEDOWN,0);
UpdateWindow(handle);
}
private const int SB_TOP = 6;
private const int SB_BOTTOM = 7;
的是正解