|
-
Mar 12th, 2000, 07:50 AM
#1
Thread Starter
Member
I'm using this:
showcursor false
why doesn't this work?
-
Mar 12th, 2000, 04:37 PM
#2
Lively Member
there seem to be no "ShowCursor"
Event, Method or Function...
as far as I can remember...
Edited by KenX on 03-13-2000 at 04:39 AM
-
Mar 12th, 2000, 09:36 PM
#3
When you say it doesn't work, do you mean it gives you an error or simply doesn't do anything at all? Also, did you declare the ShowCursor API?
-
Mar 12th, 2000, 10:41 PM
#4
Lively Member
from vbapi.com:
Declare Function ShowCursor Lib "user32.dll" (ByVal bShow As Long) As Long
ShowCursor either shows or hides the mouse cursor. This is not done directly, but rather by incrementing or decrementing a counter. Each function call raises or lowers the counter by 1. If the counter is negative, the cursor is invisible. It if it non-negative, the cursor is visible. The function returns the value of the counter after changing it.
dim counter as long
Do
counter = ShowCursor(0) ' decrement by 1
Loop Until counter < 0
' keep looping until cursor 'is 'hidden
-
Mar 13th, 2000, 05:51 AM
#5
Thread Starter
Member
This is what i have. Other than, of course, the api string.
as a global variable i have
Dim counter as Long
then, i have
do
counter = showcursor(0)
loop until counter < 0
later, to make it visible again, i do this
do
counter=showcursor (1)
loop until counter >=0
It won't work. I don't know why.
-
Mar 13th, 2000, 07:26 AM
#6
Hyperactive Member
I dont know what exactly is in ur code but , u must know that the ShowCursor function works only in And ON ur program , so if u are trying to hide the cursor in windows (desktop ... etc ... ) this function wont work otherise on ur program forms it should
-
Mar 13th, 2000, 08:24 AM
#7
Thread Starter
Member
im just trying to get it to go away in my program, but it doesn't work. everywhere i've checked for this code shows me exactly what i have, but it doesn't work.
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
|