be careful when using doevents, if you search the forum for " doevents2" or "better doevents", you'll see that the vb6 native doevents is evil