the question and code is in the following thread:
http://forums.vb-world.net/showthrea...threadid=30641