A program with 10 second timer

(label here) Enter Password: (texbox here)

(label here) time remaining: (timer here)

the user will only be given ten seconds to type in the password and after ten seconds a message box will appear. I cant really figure out the codes for the 10 second timer and the message box..Please help me! thank you!