Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Jul 2002
    Location
    Sacramento, CA
    Posts
    193
    Thanks
    3
    Thanked 1 Time in 1 Post

    Mouse Pointer (2002 - SP2)

    Is there a way with VBA to move the mouse cursor over a particular control? I've already made the control active for keyboardists, but have a request to move the mouse pointer to the control.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Mouse Pointer (2002 - SP2)

    You would need complicated code involving Windows API functions. What's the purpose?

  3. #3
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: Mouse Pointer (2002 - SP2)

    Does controlname.SetFocus do it?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Mouse Pointer (2002 - SP2)

    Marty wrote "I've already made the control active", so he already sets focus to the control, but in addition he wants to move the mouse pointer.

  5. #5
    2 Star Lounger
    Join Date
    Jul 2002
    Location
    Sacramento, CA
    Posts
    193
    Thanks
    3
    Thanked 1 Time in 1 Post

    Re: Mouse Pointer (2002 - SP2)

    Hans,

    On a couple of input forms, the user is able to do all entry via the mouse. He has pointed out that it would be it would be easier and less mistake prone for him if the mouse were to move over the correct next control after he has entered "clicked" his response to a control. While the keyboard directs him to the correct places, he likes to use the mouse. But I'm not willing to get into API coding to make him happy over this.

    Thanks,
    Marty

Posting Permissions

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