![](/img/trans.png)
[英]How to implement a vertical and horizontal scroll bar in WinForms when using paint?
[英]How to get the position of the default vertical scroll bar in winforms textbox
我需要在 winforms 文本框中获取默认垂直滚动条的 position。 到目前为止,我只设法找到一种方法来获取自定义滚动条的 position,但不是从 VS 设计器创建的默认滚动条
using System.Runtime.InteropServices;
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern int GetScrollPos(IntPtr hWnd, int nBar);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.