Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: Moving to the top of a form

Status
Not open for further replies.

allyne

MIS
Feb 9, 2001
410
0
0
US
Hi Everyone,

I have a long data entry form that when a user enters information in the last field and presses enter or tab it moves the cursor to the first field in the form at the top of the page. This works great except when the cursor goes back up to the first field the user has to use the scroll bar to view the top of the form. It there a way to have the scroll bar automatically move to the top of the form?

Thanks for you help!
 
The answer is yes but a much simpler approach is not to create a form which is so big. Why don't you split it into bite-sized chunks?

 
Hello,

I'd like to split it into bite-sized chunks but unfortunately this is what I've been asked to do....
 
Hi,

To my understanding the scroll bar should move automatically. Anyway try putting

MyFirstControl.SetFocus on LostFocus event of the last text box.

Cheers!
ÙÇãá

It's important to learn the rules so that you know how to break them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top