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
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