I want to activate an event handler (i.e. listbox1_selectedindexchanged) in my main subroutine
For example:
Private sub main()
listbox1_selectedindexchanged()
end sub
However, what should I put for parameter "e" and "sender" where e is the system.eventargs and sender is the object??
If you don't use sender
and e
parameter in the ListBox1_SelectedIndexChanged()
method then, you can call like this
ListBox1_SelectedIndexChanged(New Object, New EventArgs)