G
Guest
I want to dynamically get the control from the event being executed at a
particular time. For example, lets say I have the following event.
combobox1_SelectedIndexChanged((ByVal eventSender As System.Object, ByVal
eventArgs As System.EventArgs) Handles combobox1.SelectedIndexChanged
I don't want to just specify combobox1. I need to dynamically get the
control from the eventsender or some other method so I can write a generic
function used for any control without having to specify the actual controls
like comboBox1 or ComboBox2.
I would really appreciate someone telling me how to do it.
Thanks
particular time. For example, lets say I have the following event.
combobox1_SelectedIndexChanged((ByVal eventSender As System.Object, ByVal
eventArgs As System.EventArgs) Handles combobox1.SelectedIndexChanged
I don't want to just specify combobox1. I need to dynamically get the
control from the eventsender or some other method so I can write a generic
function used for any control without having to specify the actual controls
like comboBox1 or ComboBox2.
I would really appreciate someone telling me how to do it.
Thanks