Link to home
Start Free TrialLog in
Avatar of hess
hess

asked on

SetCursorPosition API

Declare Function SetCursorPosition& Lib "user32" (ByVal x As Long, ByVal y As Long)


Private Sub Command1_Click()
t& = SetCursorPos(0, 0)
End Sub

why does this give me a "Compile error
constants arrays fixed lenght strings user defined types and declare statements not allowd as public members of object modules"
Avatar of Vbmaster
Vbmaster

If you declare something in a form you need to add "Private" in front of the Declare statement.
Avatar of hess

ASKER

ok tahnks... let me check it out
Avatar of hess

ASKER

hey answer it and take the points
ASKER CERTIFIED SOLUTION
Avatar of Vbmaster
Vbmaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hess

ASKER

thankyou