Results 1 to 5 of 5

Thread: Change Mouse Cursor

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Posts
    71

    Question 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.

  2. #2
    Megatron
    Guest
    Code:
    Me.MousePointer = vbHourGlass
    Start = Timer
    Do While Timer < Start + 1
        DoEvents
    Loop
    Me.MousePointer = vbDefault

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Posts
    71
    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?

  4. #4
    Megatron
    Guest
    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Posts
    71
    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
  •  



Click Here to Expand Forum to Full Width