|
-
May 5th, 2001, 01:02 PM
#1
Thread Starter
Lively Member
Change Mouse Cursor
How can i change my mouse cursor to a hour glass? I want to change the cursor to hour glass but revert back to normal after a delay of 1 second.
-
May 5th, 2001, 02:10 PM
#2
Code:
Me.MousePointer = vbHourGlass
Start = Timer
Do While Timer < Start + 1
DoEvents
Loop
Me.MousePointer = vbDefault
-
May 6th, 2001, 04:43 AM
#3
Thread Starter
Lively Member
Suppose i want my mouse cursor change to hour glass regardless of what active window i am in whenever the value of one textbox of my form changes. However, when i put your code in the change event of my textbox and the VB form is not the active window or minimised , the mouse cursor does not change whenever the text value change and i am in other active window. How can i achieve my objective?
-
May 6th, 2001, 11:25 AM
#4
So basically you want to change it throughout the screen? Then just change Me to Screen.
Code:
Screen.MousePointer = vbHourGlass
Start = Timer
Do While Timer < Start + 1
DoEvents
Loop
Screen.MousePointer = vbDefault
-
May 6th, 2001, 12:23 PM
#5
Thread Starter
Lively Member
Hi , i have tried this but to no avail. I want the mouse cursor to change even though the Vb form is minimised or another window is being activated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|