A
Antonio Policelli
hello, i want to have 10 buttons on a form and all will do almost
exactly the same thing except for one differnece. can i use the tag
property of each button in the same sub?
private sub allbuttonsclick (ByVal sender As System.Object, ByVal e As
System.EventArgs) _
Handles Button1.Click, Button2.Click, Button3.Click,
Button4.Click, Button5.Click, Button6.Click, Button7.Click,
Button8.Click, Button9.Click, Button10.Click
select case "thebutton's tag"
case 1
case 2
case 3
etc....
end sub
if i can't do this is there a betters way?
thanks!
AP
exactly the same thing except for one differnece. can i use the tag
property of each button in the same sub?
private sub allbuttonsclick (ByVal sender As System.Object, ByVal e As
System.EventArgs) _
Handles Button1.Click, Button2.Click, Button3.Click,
Button4.Click, Button5.Click, Button6.Click, Button7.Click,
Button8.Click, Button9.Click, Button10.Click
select case "thebutton's tag"
case 1
case 2
case 3
etc....
end sub
if i can't do this is there a betters way?
thanks!
AP