Results 1 to 5 of 5

Thread: mousepointer

  1. #1

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755

    Talking mousepointer

    This is probably a really easy thing but my mind is somwhere else at the moment!

    I want the mousepointer to be invisible over a picturebox...
    please help
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Something like this:
    VB Code:
    1. Private Declare Function ShowCursor& Lib "user32" (ByVal bShow As Long)
    2.  
    3. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    4.  
    5. ShowCursor True
    6.  
    7. End Sub
    8.  
    9.  
    10. Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    11.  
    12. ShowCursor False
    13.  
    14. End Sub
    It's not especially reliable like that though, so you may want to look at the TrackMouseEvent API to detect when the cursor moves off the control. See this for more info on that http://www.vbforums.com/showthread.p...267#post513734
    Last edited by chrisjk; Sep 14th, 2001 at 10:42 AM.

  3. #3
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    hmmm
    maybe create an invisible cursor file then
    set the picture box mouseicon property to the cursor file

  4. #4

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755

    Talking

    thanks!
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  5. #5

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755

    Thumbs down damn!

    i think ill stick to the invisible cursor file thing...

    the other thing made the mousepointer invisible in VB!!!

    hehe! ill just restart it and maybe its ok then...

    its strange that i cant choose that in the properties...
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width