You haven't done anything here. As I see keys are not generated on Timer but on GenerateKey() Function.

I guess that you're showing your code on Textbox1, so if you're doing this - you shoud share also GenerateKey() (you are getting key from there and even if Progress bar is 100% another key will be generated ).