How to capture Button Index in .NET
Dear All,
In VB6 we can simply find out the command button index if we have series of buttons on form.
Example VB6 Code:-
Sub Command1_Click(Index as Integer)
' msgbox "You are pressed Button number :" & index
End Sub
How do we do it VB .NET ? so that we know what button we are pressed !
my .NET sample code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click
? What is the command to capture the button index
End Sub
TIA
regards
Jas
(Resolved) How to capture Button Index in .NET
Hi Guys,
Thanks for the advise and help :D i manage to complete my assignment now :D
Thanks a lot
regards
Jas