|
-
Jun 24th, 2003, 02:41 AM
#1
Thread Starter
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|