We help IT Professionals succeed at work.

Force the mousepointer to upper part of a visual basic form

Medium Priority
Last Modified: 2013-11-25
We have a project what links multiple forms together.  We move from one form to the other by using the (FormName.Show).  There are some instances where we want to make sure that the mouse pointer is in the upper part of the form that is being shown.  Probably in the upper 1/4th of the form.

Will appreciate any help!

Watch Question

You could use the onFocus event of the form and call this code


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Thank you very much Computron for your prompt response.  Appreciate it very much.

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.