Scrolling the current window using ScrollWindow function

giladbr

New member
Local time
Today, 14:56
Joined
Nov 16, 2006
Messages
5
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.
 

Users who are viewing this thread

Back
Top Bottom