I have a problem while using Enter key in text box.
when user presses enter in the text box information of customer is loaded.
and I have a clear button that clears all the controls on the form.
first it works properly. then I click on some other button (say detail
button) that opens some other form. after closing that form if clear the
form using clear button and again enter Id in text box and press enter. it
does not work instead click event of Detail button is fired.
Again I clear the form and press enter in the text box then it works and
shows the data in controls. It happens several times.
I am able to trace that. Control does not enter in event handler of key
press event when this problem happen.
no error is coming in any of the processes and no default button is set.
Any solutions to this problem?
--
Regards,
Lalit Bhatia