Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    vbHourglass (vb6, w2000)

    I want the hourglass cursor to appear as another form is loading. From my cmdOK button on frm1, I have MousePointer = vbHourglass. on my load on frm2, i have MousePointer = vbDefault. Is this correct? It doesn't seem to work. thanks for the help

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: vbHourglass (vb6, w2000)

    You need an object. Try

    Screen.MousePointer = vbHourglass
    Charlotte

  3. #3
    5 Star Lounger jujuraf's Avatar
    Join Date
    Jun 2001
    Location
    San Jose, California, USA
    Posts
    1,061
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: vbHourglass (vb6, w2000)

    The cursor and mouse pointer are two different objects. To set the cursor shape use
    <pre>system.cursor = wdCursorWait
    </pre>


    Deb <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: vbHourglass (vb6, w2000)

    Well, *a* cursor and the mousepointer are two different objects, but unless you're talking about recordset cursors, the two terms are usually interchangeable. The exception would be if you wanted to set the default cursor, I suppose. You're using a Word constant, but in VB you don't have a cursor object or access to Word constants unless you set a reference to a library that contains them. Instead, you use the mousepointer object, as you do in Access.
    Charlotte

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •