That is not what is happening though. When you click off the form, the focus is getting set back to the form. This seems normal at first, but then, the lostfocus fires again. This is what is so puzzling. If you put a wait window in the lost focus, it comes up twice even though you have only clicked off of the form one.
>Brian,
>
>I guess I don't see the problem...if you keep clicking off the form, but you keep setting focus back to the form in lostfocus(), lostfocus() has to fire every time you click off of it again.
>
>>Steve,
>>
>>I agree with you. I have played with Chris' actual code for a while now, and have discovered that it is the setfocus call in the lostfocus that is causing this problem. I haven't found anything in the KB or wikis that document this. I wonder what the smallest demonstrable code is.
>>
>>Perhaps antoher rainy day project.
>>
Brian McCord
President
Sagacity Systems