Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do you make the hourglass appear?
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
RGB255




PostPosted: Mon Oct 30, 2006 11:11 pm   Post subject: How do you make the hourglass appear?

I'm making a program and there are graphics in it. While the graphics are being drawn I want the mousepointer to appear as the hourglass and change back again.
Sponsor
Sponsor
Sponsor
sponsor
Silent Avenger




PostPosted: Mon Oct 30, 2006 11:26 pm   Post subject: (No subject)

Well there are several ways you can do this the easiest of which is to use the screen properties. I believe the mousepointer which is the hourgrlass is number 11. So to make the mousepointer into an hourglass you would use the following code:
code:
Screen.mousepointer = 11
this will change the mousepointer to an hour glass
Also to change back to the regular mouse pointer you would use the code:
code:
Screen.mousepointer = 0


Here's an example program to show you what this does. (put 2 command buttons on your form)

code:
Private Sub Command1_Click()
Screen.mousepointer = 11
End Sub

Private Sub Command2_Click()
Screen.mousepointer = 0
End Sub
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: