Results 1 to 2 of 2

Thread: Enter and Tab

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Location
    Rafaela (Argentine)
    Posts
    107

    Question

    I'm trying to make a form where you can exit fields pressing both Enter or Tab keys. How can I do this, without having to code all the KeyPress events for the fields in the form?

    Thanks in advance

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Set the Forms KeyPreview property to true. Then you can trap all key presses at form level and deal with them in the forms keypress events
    Iain, thats with an i by the way!

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