Why isn't this working 
Author Message
 Why isn't this working

I need to know why this code isn't working, I used it in another program
about a month ago and it worked fine then.  I'm using VB3.0, and I'm trying
to make the mouse disappear.

In a module I have:
Declare Function ShowCursor Lib "User" Alias "ShowCursor" (ByVal bShow As
Integer) As Integer

That was copied from the program that I was using it in a month ago (BTW,
the mouse doesn't disappear in that program either)

Then when I want the mouse to vanish:
Dim i as Integer
i = ShowCursor(0)

The mouse should vanish but it doesn't

When I want it to reappear:
Dim i as Integer
i = ShowCursor(1)

I'm not sure if this is working because it would be making an allready
visible mouse visible

What in the world is wrong with this???


thanx



Fri, 28 Jul 2000 03:00:00 GMT  
 Why isn't this working

It works for me.  Since it worked for you a while back.....what have
you added to your system lately?  Is there another program that might
be bumping up the cursor count?

Since the returned variable is supposed to be the display count, you
could try this:

dim ii as integer
do while ii>0
        ii=showcursor(0)
loop

BE CAREFUL.... I don't think you want to go negative...



Quote:
>I need to know why this code isn't working, I used it in another program
>about a month ago and it worked fine then.  I'm using VB3.0, and I'm trying
>to make the mouse disappear.

>In a module I have:
>Declare Function ShowCursor Lib "User" Alias "ShowCursor" (ByVal bShow As
>Integer) As Integer

>That was copied from the program that I was using it in a month ago (BTW,
>the mouse doesn't disappear in that program either)

>Then when I want the mouse to vanish:
>Dim i as Integer
>i = ShowCursor(0)

>The mouse should vanish but it doesn't

>When I want it to reappear:
>Dim i as Integer
>i = ShowCursor(1)

>I'm not sure if this is working because it would be making an allready
>visible mouse visible

>What in the world is wrong with this???


>thanx

Barry Eggers
eggers1 AT tsil DOT net


Sat, 29 Jul 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Why isn't this working??

2. Why isn't this working?

3. why isn't this working?

4. Why isn't this working?

5. Why isn't this working?

6. why isn't this working

7. Why isn't his working correctly...?

8. Why isn't this working!! Help!!!

9. Why isn't this working? - mailing with outlook

10. SHELL command within VB5. WHY ISN'T IT WORKING

11. Why isn't my code working?

12. Why isn't my filter working in the Common Dialog ShowOpen Function

 

 
Powered by phpBB® Forum Software