Results 1 to 3 of 3

Thread: How do I change mouse cursor to hourglass?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Coventry, England
    Posts
    169

    How do I change mouse cursor to hourglass?

    I'm opening a search results page in a new small window, and it takes quite a while to load if the search is broad. So I want to inform the user that the site is busy searching. At the moment, there is no hourglass and it looks like IE has locked or something, so the user might try and close the new window. So the cursor should change to hourglass while it's loading, and back to normal after it has loaded.

    Thanks.

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Posts
    80

    search VB help : mousepointer

    MousePointer Property Example
    This example changes the mouse pointer to an hourglass while circles are drawn across the screen and then changes the hourglass back to a pointer at the end of the procedure. To try this example, paste the code into the Declarations section of a form. Press F5 to run the program, and then click the form.

    Private Sub Form_Click ()
    Dim I ' Declare variable.
    ' Change mouse pointer to hourglass.
    Screen.MousePointer = vbHourglass
    ' Set random color and draw circles on form.
    For I = 0 To ScaleWidth Step 50
    ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
    Circle (I, ScaleHeight * Rnd), 400
    Next
    ' Return mouse pointer to normal. Screen.MousePointer = vbDefault
    End Sub

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I couldn't find anything, but try popping up two windows: one that has just a little animated gif and the other that does the searching. Popup the "loading" GIF one last.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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