Hello,
I'm a beginner in Visual Basic and I was wondering if it is possible to shorten twenty subs into only 1 sub.
example:
Private Sub box1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click
Dim box1Click As Boolean = True
End Sub
Private Sub box2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click
Dim box2Click As Boolean = True
End Sub
...
Private Sub box20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click
Dim box20Click As Boolean = True
End Sub
Thank you