Okay so I have about 100 pictureboxes and I want them to change colour when you click them. I don't want to write the code for every picturebox individually because that would take ages. I've come up with this code but it doesn't work despite having no errors, why?
Public Class frmFriday
Dim btn As PictureBox
Private Sub btn_click(ByVal sender As Object, ByVal e As System.EventArgs)
btn.BackColor = Color.Blue
End Sub
End Class