thanks for that martin. that code will be useful to me. the txtinput box is for the player 1 to type in a word, player 2 has to guess the word by pressing the cmdLet array, if that letter exists in the word then display in txtoutput, else draw a line