Hi!
Well, if you meant preventing focus leaving, "return 0" in the Valid event, or NODEFAULT in the LostFocus event. In the grid you can also prevent row or column change in the BeforeRowColChange by NODEFAULT.
HTH.
>Thanks a lot!
>
>After setting the length, I want to stay at the current cell, so I used "return" in the valid event, but it still jump to next row/column, are there any simple way to fix this?
>
>Thanks again,
>Jimi
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.