Results 1 to 13 of 13

Thread: VB - Select and Use an Animated Cursor

  1. #1

  2. #2
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346
    Nice stuff....but I got a problem when I clicked the stop button...
    It permanently changes the cursor....

    Is there anyway to set it so that only the specified form will display that cursor, and not the entire windows gui?
    If my post has been helpful, then please rate it accordingly...
    If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.

  3. #3

  4. #4
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346
    Sorry to disappoint you....but VB doesn't call the Form Unload procedure when the Stop button is clicked...
    If my post has been helpful, then please rate it accordingly...
    If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Then don't do that.

    If you close the program properly, the unload event will fire.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346
    Originally posted by crptcblade
    Then don't do that.

    If you close the program properly, the unload event will fire.
    lmao...I can't help myself...sometimes I just click the blue square subconsciously....

    But let's just say, for instance, that you implement the code into your program and compile it and what not and for some strange reason the process terminates (whether by OS or by Task Manager, etc.) then the user will get stuck with the cursor of your choice...

    If my post has been helpful, then please rate it accordingly...
    If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.

  7. #7
    New Member
    Join Date
    Oct 2004
    Posts
    3

    I need to set the defaul mouse pointer , help me

    Dear Sir,

    I used your Project which u posted in the above thread Cursor.Zip, i run the Project and selected some other cursor like hand symbol and exit the program, the problem is i am not able to get back my default cursor again. through out the window & outside vb or any where it showing the HandPicture as the mouse pointer, Can u please help me. bring back the mouse to its original position.

    Thank you,
    Chock.
    Have a Nice Day

  8. #8

  9. #9
    New Member
    Join Date
    Oct 2004
    Posts
    3
    Hi,

    Unfortunately i miss to add the "RestoreLastCursor" function in the Form_Unload event. what's the procedure to bring it back again, i can only restart the machine, other than this, i can't do anything, because, its in the Network.

    thank you,
    Chock.
    Have a Nice Day

  10. #10
    New Member
    Join Date
    Oct 2004
    Posts
    3

    Solved Problem

    Hai,

    I got the problem solved by placing the "RestoreLastCursor" function in the Unload event.

    Thank you,
    Chock

  11. #11

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Solved Problem

    Originally posted by chslgm545
    Hai,

    I got the problem solved by placing the "RestoreLastCursor" function in the Unload event.

    Thank you,
    Chock
    See my post I made on 12-25-2003 01:39 PM above

  12. #12
    Member Senacharim's Avatar
    Join Date
    Feb 2008
    Posts
    56

    Re: VB - Select and Use an Animated Cursor

    Have used the animated cursor module to great effect (very cool!)

    Trying to figure a way to have a "mouse-over" affect, wherein it does the animated cursor when over a certain object--and at no other time.

    Thanx...
    _____________________________
    . Error Code 34: There is no error .

  13. #13

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: VB - Select and Use an Animated Cursor

    That should be pretty easy. Set the form's keypreview property to True. Then figure out where the control is on the form via scalewidth, scaleheight and the control's dimensions and then in the form's MouseMove event turn the cursor on when it's over the control and off when it's not.

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