Showing results 1 to 4 of 4

Thread: ListBox VSTA

  1. #1
    Join Date

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

    this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(ThisProject_AlarmListSelectionChanged);

    AlarmListSelectionChanged => Event
    AlarmListSelectionChangedEventHandler => Handler

    Best regards,

    Varnizy Loan.

  2. #2
    Join Date

    Default Re: ListBox VSTA

    Well I found, but I'm still looking for some informations about zenOn.SelectionChangedEventHandler !

  3. #3
    Join Date

    Default Re: ListBox VSTA

    this event is available for the AML and the CEL only (not for any other list controls)
    -> it is triggered if i.e. in the AML an alarm is selected where then the given alarm object is handed over

  4. #4
    Join Date

    Default AW: ListBox VSTA


    what exactly are you doing with your listbox?
    For the case you are talking about the zenon listbox element, maybe you can use the functionality described in the manual at:
    Manual -> Screens -> Screen elements -> Combo/List Box -> Dynamic combobox or list box

    Basically your list box entries are defined by a semicolon separated string. When selecting an entry the variable linked to the listbox is set to the selection, which means you would get a "VariableChange" Event of an OnlineVariable (search the forum for more details on OnlineVariables)


Similar Threads

  1. ActiveX Microsoft Listbox - AddItem
    By jenny in forum zenon Supervisor
    Replies: 2
    Last Post: 28th February 2014, 10:33
  2. Dynamische Listbox mit Multiselect...
    By hp in forum zenon Supervisor
    Replies: 1
    Last Post: 4th July 2013, 10:10
  3. Replies: 1
    Last Post: 31st January 2011, 15:23
  4. Populate listbox from SQL
    By macdaddy in forum zenon Supervisor
    Replies: 2
    Last Post: 9th August 2010, 13:28
  5. MS Forms 2.0 Listbox
    By perschke in forum VBA
    Replies: 1
    Last Post: 23rd October 2009, 07:07

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts