Textbox drop Focus on ENTER key
-
Every time I press the enter key after updating the value in a textbox I hear a beep and no events are raised. I would like it to raise the 'leave' event so I can change it's color and transfer focus to an other object. I managed to do it by checking for "vbcr" in the "form keypress event" but is there a better way? Why isn't enter key working on my textboxes? Hope that was clear as mud!!!! LOL Rob
-
Every time I press the enter key after updating the value in a textbox I hear a beep and no events are raised. I would like it to raise the 'leave' event so I can change it's color and transfer focus to an other object. I managed to do it by checking for "vbcr" in the "form keypress event" but is there a better way? Why isn't enter key working on my textboxes? Hope that was clear as mud!!!! LOL Rob
You can use Textbox_presskey event. Such as if keypress =13 then textbox.background=...... textbox2.focus end if
-
You can use Textbox_presskey event. Such as if keypress =13 then textbox.background=...... textbox2.focus end if