Hey all,
I'm using vb 6.3 and access 2003.
I have a wide access form which has a horizental scrollbar.
I want to scroll the form sideways using VB code.
I've searched around and it seems that the scrollwindow API function is a good way to do so. I call it thus:
dim i as rect
GetClientRect hwnd, i (in order to get the current window rectangle into i)
scrollwindow hwnd,-1,0,i,i
I have declared the "rect" type, the getclientrect function and the scrollwindow function properly - that part seems alright. However, the function does nothing... What's wrong? I tried:
scrollwindow hwnd,-1,0,null,null
but that returns a byref error...
Thanks in advance!
Gilad.
I'm using vb 6.3 and access 2003.
I have a wide access form which has a horizental scrollbar.
I want to scroll the form sideways using VB code.
I've searched around and it seems that the scrollwindow API function is a good way to do so. I call it thus:
dim i as rect
GetClientRect hwnd, i (in order to get the current window rectangle into i)
scrollwindow hwnd,-1,0,i,i
I have declared the "rect" type, the getclientrect function and the scrollwindow function properly - that part seems alright. However, the function does nothing... What's wrong? I tried:
scrollwindow hwnd,-1,0,null,null
but that returns a byref error...
Thanks in advance!
Gilad.