CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2000
    Posts
    127

    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. Where can i find other kinds of cursor shape that my mouse cursor can take ?


  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Change Mouse Cursor

    MousePointer = vbHourglass

    check out msdn under mousepointer

    David Paulson

  3. #3
    Join Date
    Sep 2000
    Posts
    127

    Re: Change Mouse Cursor

    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
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Change Mouse Cursor

    Screen.MousePointer = vbHourGlass

    and back

    Screen.MousePointer = vbDefault

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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

Featured