I have 1 array cboUP(3) of 4 comboxes and 1 proc handles them all like this:
[VB]
For i = 0 To 3
AddHandler cboUP(i).SelectedIndexChanged, New System.EventHandler(AddressOf cboUp_SelectedIndexChanged)
Next
[/VB]
In the cboUp_SelectedIndexChanged, I have no problem getting the sender, but I also need the index of the cboUP.
Is it possible to find the i?
[VB]
For i = 0 To 3
AddHandler cboUP(i).SelectedIndexChanged, New System.EventHandler(AddressOf cboUp_SelectedIndexChanged)
Next
[/VB]
In the cboUp_SelectedIndexChanged, I have no problem getting the sender, but I also need the index of the cboUP.
Is it possible to find the i?
Last edited by a moderator: