i want to a car park booking system, and i put picbox to let user click, my questions is how to use picbox to connect to sql 2014, i means i need to know which picbox the user have clicked, and it will auto record to sql 2014.
What I have tried:
Private Sub PictureBox10_Click(sender As Object, e As EventArgs)
If CType(sender, PictureBox).Image Is availableIcon Then
CType(sender, PictureBox).Image = provisionalIcon
ElseIf CType(sender, PictureBox).Image Is provisionalIcon Then
CType(sender, PictureBox).Image = availableIcon
End If
End Sub