>hi all
>i write some coding in a control text box at lostfocus method
>if user press enter key it works fine
>but if user press tab key to next control text box,
>this control lostfocus method does not work at all
>so where should i put the coding into in order to work with enter or tab key ?
LostFocus() works both with ENTER and with TAB - I just tested it, just in case. It should also work with a mouse click into another object.
You might have some other code that interferes. Do you use KeyPress()?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)