Generic Event Handling

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to access an event that doesnt exist at desingtime
as it is only an object or control, however I know it
will at runtime. This works with properties OK but with
events it wont accept it unless it exists at designtime.

Example:
WORKS!
dim obj as Control
obj=Combobox1
msgbox obj.SelectedIndex

DOESNT WORK!!
Private Sub Generic() Handles obj.SelectedValueChanged
 
Please reread my original post as I think you have missed
the point. I cannot declare a ComboBox only a Control.
 
Back
Top