La Savate Posted December 7, 2003 Posted December 7, 2003 (edited) I have 1 array cboUP(3) of 4 comboxes and 1 proc handles them all like this: For i = 0 To 3 AddHandler cboUP(i).SelectedIndexChanged, New System.EventHandler(AddressOf cboUp_SelectedIndexChanged) Next 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? Edited December 7, 2003 by La Savate Quote
Administrators PlausiblyDamp Posted December 7, 2003 Administrators Posted December 7, 2003 You could try something similar to Dim i as integer i = System.Array.IndexOf(cboUP, sender) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
La Savate Posted December 7, 2003 Author Posted December 7, 2003 Amazing, thanks a lot for your help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.