>>Put in a READ EVENTS for your login. If successful, CLEAR EVENTS, then READ EVENTS again. If login fails, just CLEAR EVENTS.
>
>Ok, it works now. What I did was to put my READ EVENTS in my form Activate() and the CLEAR EVENTS in the master class. The right way is to have the READ EVENTS in the form Activate() and the CLEAR EVENTS in the form QueryUnload().
>
>Each top level form need to have its own EVENTS.
>
>I guess I'll have to add a property in my base form which will take care of that by having a lTopLevel property in the base form.
>
>Thanks.
Hmmmm......in reality, the READ EVENTS should be a your main prg. You should not put READ EVENTS in the form.
Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer