Originally Posted by p45cal
Yes. Because the code is the same, you will be duplicating code. That's fine for now, but in future you'll find that managing duplicate ( or triplicate, etc.) code is a pain because if you make a change in one place, you'll have to find the duplicate code and make the change there too. Your tutor will probably tell you it's better to have only one version of that repeating code, and have the various event handlers call it. That way you only have to edit one bit of code.