Quantcast
Viewing all articles
Browse latest Browse all 12583

Leave Event is called more than once in C#

Dear all,

I have one very strange problem that the leave event is called more than once even I just press tab only once. Here is the full details of the problem:

If the user enter the code and leave the textbox, it will automatically obtain the item information. Here it works fine without any problem.

If the user did not enter any thing, then it will delete the textbox. Here is the problem. The leave event to delete the textbox is executed twice and that is why it will create problem that it wants to delete raw that is not exists.

I want to know how to fix this? what are the actions which let the textbox leave event handler executed twice?

Thank you


Viewing all articles
Browse latest Browse all 12583

Trending Articles