The virtual key codes for 0-9 and A-Z are, conveniently enough, '0' to '9' and 'A' to 'Z'. If you need more info on the key codes, see winuser.h, and there's a list of the codes in MSDN. --Mike-- http://home.inreach.com/mdunn/ The Signature, back by popular demand: Buffy. Pajamas.