I'm using this:
showcursor false
why doesn't this work?
Printable View
I'm using this:
showcursor false
why doesn't this work?
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
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?
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
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.
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
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.