vb.net - Calling Public Sub with Handles -


trying simple. have event firing when active item in listview.

i want call event place (a timer in case shouldn't change much).

my sub:

public sub accountchecker_accountlist_itemactivate(sender object, e eventargs) handles accountchecker_accountlist.itemactivate     [...my code] end sub 

i want have execute if did not activated item. however, can find "click" listview item.

i tried this:

accountchecker_accountlist_itemactivate(x,y) 

i need x , y this. object , eventargs in function can call it?

regards,

the sender object calling method, can use me. can use eventargs.empty e, i.e.

accountchecker_accountlist_itemactivate(me, eventargs.empty) 

however, may depend on sender in [...my code] - handlers may expect specific type , may not being passed random object!


Comments