|
-
Jun 25th, 2000, 02:18 AM
#1
Thread Starter
Lively Member
How do you see the x,y cordinates outside a form and how do you make the mouse cursor invisible
-
Jun 25th, 2000, 02:37 AM
#2
Hyperactive Member
Try this...
Public Type POINTAPI
x As Long
y As Long
End Type
Public Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (lpPoint As POINTAPI) As Long
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Jun 25th, 2000, 02:41 AM
#3
Addicted Member
Go see MouseMove Event Post. You get more than an answer
-
Jun 25th, 2000, 02:43 AM
#4
Thread Starter
Lively Member
code
where would i put the code that you just wrote?
in general
or a form
or a module?
-
Jun 25th, 2000, 02:48 AM
#5
Hyperactive Member
anywhere you want ;-)...
you could put it as private in a form, or in a module as public to anything.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Jun 25th, 2000, 07:29 AM
#6
PowerPoster
ShowCursor API
With the ShowCursor API function will be able to show/hide a mouse cursor anywhere + anytime you want it to be.
Code:
Option Explicit
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Private Sub Command1_Click()
'Hide the mouse cursor
ShowCursor False
End Sub
Private Sub Command2_Click()
'Display the mouse cursor
ShowCursor True
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|