Results 1 to 4 of 4

Thread: Simple question - displaying mouse pointer

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Brunei
    Posts
    100

    Smile

    Hi everyone,

    When I move from one form to another, no cursor is displayed. I want to display the hour glass cursor, when the next form is being opened.

    I'm a beginner, so excuse my simple question.

    Your help would be greatly appreciated.

    Thank you.

  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    Scotland
    Posts
    184
    try this:

    MousePointer = vbHourglass

    then to turn if off

    MousePointer = vbDefault

    If you are a beginner, you may get caught out that the mouse does not change back from an hourglass if errors are encountered, I know I do ;-).

    You will sool learn how to resolve this by placing MousePointer = vbDefault in the error_handler or something.

  3. #3
    Guest
    It's good idea to set the pointer for the whole screen.

    In a CommandButton (In Form1)
    Code:
    Screen.MousePointer = vbHourglass
    Form2.Show
    In Form2's Load event
    Code:
    Screen.MousePointer = vbDefault

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Brunei
    Posts
    100
    Originally posted by Megatron
    It's good idea to set the pointer for the whole screen.

    In a CommandButton (In Form1)
    Code:
    Screen.MousePointer = vbHourglass
    Form2.Show
    In Form2's Load event
    Code:
    Screen.MousePointer = vbDefault
    Megatron and Steven,

    Thanks for your support and time. Your idea works.

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