Please do not post questions to tutorials or CodeBank threads etc, unless your question is just about what the thread starter posted - I have moved your post (which quotes the entire relevant code) to its own thread in our VB6 forum.