ListBox VSTA

ListBox VSTA

Dear supports!
I want to execute some code depending the selected entry number of a listbox. I'm already able to execute a VSTA macro in listbox properties, but I want to do it access in VSTA! ( I don't want 14690 macro to manage the listbox ).
Secondary question, I found "zenOn.SelectionChangedEventHandler" but I don't find the event. Can you tell me the linked name event ?
For example I used :
C# Code:
this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(ThisProject_AlarmListSelectionChanged);

AlarmListSelectionChanged => Event
AlarmListSelectionChangedEventHandler => Handler
Best regards,
Varnizy Loan.

This is a migrated post! Originally posted on 31.03.2015 by user loanvar. Please be aware that information can be outdated.