Catch hardkeys in textbox control ?

conf

Member
Hi everyone,

I have a form with 3 textbox: TextBox1, TextBox2, TextBox3. When focus in TextBox1, I want to press down key and it will focus toTextBox2, also with TextBox3. I read example in Help but it only catch hardkeys of form, not the textbox. Could you please tell me how?

Thank so much.
 
Last edited:

specci48

Well-Known Member
Licensed User
Longtime User
You can only catch the hardware keys from a form so you have to code manually what you want to do.
I added an example to change the focus of different textboxes ... but I think it is not an elegant way to do it.

specci48
 

Attachments

  • HardKey.zip
    2.9 KB · Views: 409

conf

Member
Specci48, you help me again

But your code only catch key once time. I'll think another solution.

Thank you again and again.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…