Textbox Leave event triggered more than once

hitasha

New member
Joined
Aug 10, 2007
Messages
3
Programming Experience
1-3
Dear All,
I have the following code in a textbox leave event

if txt13.text <> "" then
filltxt13()
loaddata()
end if

However at runtime, the leave event is being fired three times when text13 no longer has focus. The form having this text box is being called from another form in dialog mode.

Can someone please shed some light.

Regards
hitasha
 
The leave event is slightly different than the mouseleave event I think that what you want is the mouseleave event. I have seen the same exact problem and the only way that I could fix it was to use the mouse events rather than those sets of events.

I cannot give you a good reason as to why the leave event fires 3 times, but if there is someone who does know it would be good to find out why.
 
Thanks you for the replies.

I review my code, I think that focusing on another textbox was the cause of the problem. I remove the function causing it and it seems to be ok now.
Thanks.
 
Back
Top