Put some breakpoints in and follow the code. Change the color to see what it is doing. I can't run it here because I don't have VB6 so mess with it, follow the logic, you should get it.