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"
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"
If you declare something in a form you need to add "Private" in front of the Declare statement.
ASKER
ok tahnks... let me check it out
ASKER
hey answer it and take the points
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thankyou