Results 1 to 4 of 4

Thread: how do i capture the tab key

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2012
    Posts
    38

    how do i capture the tab key

    i have a form and on that form i want to catch the tab key so that when a user hits the tab key it goes to a defined textbox or drop down. i have tried tab ordering but its not working , my forms key preview is set to true, how do i do this programatically?

  2. #2
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: how do i capture the tab key

    Quote Originally Posted by chrishoney View Post
    i have a form and on that form i want to catch the tab key so that when a user hits the tab key it goes to a defined textbox or drop down. i have tried tab ordering but its not working , my forms key preview is set to true, how do i do this programatically?
    How is it not working?
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2012
    Posts
    38

    Re: how do i capture the tab key

    Quote Originally Posted by dbasnett View Post
    How is it not working?
    the order i have set is not followed, have also manually set the tab index on the properties box but to no avail

  4. #4
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: how do i capture the tab key

    the order i have set is not followed
    Then you haven't, despite what you might think, set the order correctly or you have a richtextbox which accepts Tabs on the path or, far less likely, you have something which is capturing Tabs already. There is no way for this to 'not work' in other circumstances unless it is explicitly overridden (if that's possible, never tried it; never needed to).
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

Tags for this Thread

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