I managed to sort out the letters but what I'm stuck on now is when the word if finished how to let the program now that the word is found and it is the end of the game. Also how do I hide the wrong letters and take a guess off the amount here is the code from what i have done for the main form Private word As String Option Explicit Private Sub Form_Load() Dim guess As Integer Dim a As Integer guess = 12 GuessesLeft.Caption = "You have " & guess & " Guesses left" word = frmWord.txtWord.Text For a = 1 To Len(word) letter1(a - 1).Visible = True Next a End Sub Private Sub Label1_Click(Index As Integer) Dim i As Integer Dim go As String go = UCase(Label1(Index).Caption) word = UCase(word) For i = 1 To Len(word) If go = Mid(word, i, 1) Then letter1(i - 1).Caption = go Label1(Index).Visible = False End If Next i End Sub
|