I do not fire any events by myself. Apparently if you press enter in a
textbox it will automatically set focus to the next control and it does
this before the keydown/press/up event is fired. I am working on a
special datacolumn to suit our needs and insert a modified sle when the
user wants to edit something in the grid. When they press enter or esc
the focus is removed, switched to the next textbox (not my own but the
datagrid's textbox) and then that box fires it's gotfocus event and only
then the keyup event seems to register. I expected the keypress events
to occur first but apparently they get moved to the back of the row.
Currently I've solved my little problem by implementing it a different
way, but the order of events is still a mystery to me. Maybe it's
something to do with the datagrid, I'll see if I can whip up an example
and hope I can get it here because this computer is disconnected from
our internal network.
Peter Proost wrote:
Hi do you use the keydown of tb1 to check if esc is pressed and then set the
focus to tb2? Because then I'm surprised that tb1 would fire his keyup
event. But I'm not completly sure what you want by reading your explanation.
--
Rinze van Huizen
C-Services Holland b.v