NicktheNewbie
MIS
I have the following code...
Private Sub btnSeat1A_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSeat1A.Click, btnSeat1B.Click
btnSeat1A.BackgroundImage = _
Image.FromFile("...\Project Files\seatme.jpg"
End Sub
Now what happens is, when I click the button btnSeat1A or btnSeat1B, the background image for btnSeat1A changes.
I know I could just have 40 "on click" events, one for each button, but this seems tedious.
I have 40 buttons, and when each one is clicked, I need the background image to change for that button.
When I try:
me.BackgroundImage = _
Image.FromFile("...\Project Files\seatme.jpg"
behind the onclick event, it changes the background of the form, not the button.
what would be the easiest way to handle this?
Private Sub btnSeat1A_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSeat1A.Click, btnSeat1B.Click
btnSeat1A.BackgroundImage = _
Image.FromFile("...\Project Files\seatme.jpg"
End Sub
Now what happens is, when I click the button btnSeat1A or btnSeat1B, the background image for btnSeat1A changes.
I know I could just have 40 "on click" events, one for each button, but this seems tedious.
I have 40 buttons, and when each one is clicked, I need the background image to change for that button.
When I try:
me.BackgroundImage = _
Image.FromFile("...\Project Files\seatme.jpg"
behind the onclick event, it changes the background of the form, not the button.
what would be the easiest way to handle this?