I'm new to this so sorry if i do it wrong. I'm trying to create a memory game where press a button and this shows a label, you then press another button, if the two match then they stay on the screen. I have had various attempts at failed code including:
CODE
Public Class SpanColours
Dim OneButton As Boolean = False
Dim PairFound As Boolean = False
Dim CheckColour = 0
Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CHideButton1.Click, CHideButton2.Click, CHideButton3.Click, CHideButton4.Click, CHideButton5.Click, CHideButton6.Click, CHideButton7.Click, CHideButton8.Click, CHideButton9.Click, CHideButton10.Click, CHideButton11.Click, CHideButton12.Click
sender.hide()
If OneButton = True Then
If sender.Tag = sender.Tag Then
sender.hide()
PairFound = True
sender.show()
OneButton = False
Else
sender.show()
OneButton = True
End If
End If
End Sub
This will make such little sense to anyone i'm sure!
Thanks if you can help me!