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_Selec tedIndexChanged ((ByVal eventSender As System.Object, ByVal
eventArgs As System.EventArg s) Handles combobox1.Selec tedIndexChanged
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_Selec tedIndexChanged ((ByVal eventSender As System.Object, ByVal
eventArgs As System.EventArg s) Handles combobox1.Selec tedIndexChanged
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
Comment