*
(E-Mail Removed) (Antonio Policelli) scripsit:
> 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
Why not this:
\\\
Select Case True
Case sender Is Button1
...
Case sender IS Button2
...
...
End Select
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>