I am trying to return the vertical scroll position of a rich textbox
control using Access 2000. It seems to work for the horizontal scroll
bar, but not the vertical. Code follows:
Option Explicit
Private Declare Function GetScrollPos Lib "user32" (ByVal hwnd As
Long, ByVal nBar As Long) As Long
Private Declare Function GetFocus Lib "user32" () As Long
Private Const SB_VERT = 0
'****************some event
Dim lPosition As Integer
Dim lHandle As Long
Me.axcEsign.SetFocus
lHandle = GetFocus()
'MsgBox lHandle
lPosition = GetScrollPos(lHandle, SB_VERT)
MsgBox lPosition
Any ideas?
Thanks