I have no idea, I copied the code from a tip on VB-World...