Quote:
That's exactly what i was waiting for . A nonsense comment. thanks
Not really nonsense though is it?
As Maciej says in his comment, it's "unfriendly to the UI" and Gerry says "without smashing the keyboard". At the very least it's counter-intuitive behaviours from your UI.
Try to see it from a Users perspective - I'm typing away but will suddenly double-click something else (i.e. remove my hand from the keyboard to grasp my mouse), then what? Carry on typing in the original text box?
What if I started typing in the textbox but it's now the EOD and I want to leave the program entirely. Can't because I'm still stuck in that text box.
It sounds like you need to do something in the
Validate
event for the text box, but watch out for that last scenario - not insurmountable see
Allow Form to close when invalid data is present[
^]