简体   繁体   中英

How to get the position of the default vertical scroll bar in winforms textbox

I need to get the position of the default vertical scrollbar in a winforms textbox. So far i only managed to find a way to get the position of a custom scrollbar, but not of the default one created from VS designer

using System.Runtime.InteropServices;

[DllImport("user32.dll", CharSet = CharSet.Auto)]

static extern int GetScrollPos(IntPtr hWnd, int nBar);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM