Capturing The Tab Key

There may be times when your application needs to capture the tab key. You may want to change the tab order under specific circumstances, allow the user to use the Tab key within a text box to move to the next tab stop instead of the next field, and so on. This is not an easy task because the TAB does NOT generate the Key_Press event. So, you need to use the GetKeyState windows API function for this.Click Here for the Code

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish