Click to See Complete Forum and Search --> : VB - Select and Use an Animated Cursor
MartinLiss
Feb 18th, 2003, 12:28 PM
The attached project demonstrates how to select and use animated cursors.
Protocol
Dec 25th, 2003, 04:35 PM
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?
MartinLiss
Dec 25th, 2003, 04:39 PM
Just do this
Private Sub Form_Unload(Cancel As Integer)
RestoreLastCursor
End Sub
Protocol
Dec 25th, 2003, 04:58 PM
Sorry to disappoint you....but VB doesn't call the Form Unload procedure when the Stop button is clicked... :D
crptcblade
Dec 25th, 2003, 05:03 PM
Then don't do that. ;)
If you close the program properly, the unload event will fire.
Protocol
Dec 26th, 2003, 12:03 AM
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...
:confused:
chslgm545
Oct 26th, 2004, 04:36 AM
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.
MartinLiss
Oct 26th, 2004, 01:54 PM
At this point you'll need to reboot. Make sure your program always executes the RestoreLastCursor routine when you exit.
chslgm545
Oct 26th, 2004, 11:51 PM
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.
chslgm545
Oct 27th, 2004, 12:46 AM
Hai,
I got the problem solved by placing the "RestoreLastCursor" function in the Unload event.
Thank you,
Chock:)
MartinLiss
Oct 27th, 2004, 12:55 AM
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 :)
Senacharim
Jul 22nd, 2008, 06:50 PM
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...
MartinLiss
Jul 22nd, 2008, 07:22 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.