I need to associate an event to a list box; I want to associate the event to the change of the control element.
Does someone know what I must specify as EventMethod? (actionPerformed and itemstatechanged don't work as I desire).
Thanks
roberto
[Solved] Eventmethod related to 'item changed'
[Solved] Eventmethod related to 'item changed'
Last edited by rutimike on Fri Mar 21, 2008 6:08 pm, edited 1 time in total.
Re: eventmethod related to 'item changed'
Try this:
oEvents(0).ListenerType = "XItemListener"
oEvents(0).EventMethod = "itemStateChanged"
instead of:
oEvents(0).ListenerType = "XActionListener"
oEvents(0).EventMethod = "actionPerformed"
ciao
michela
oEvents(0).ListenerType = "XItemListener"
oEvents(0).EventMethod = "itemStateChanged"
instead of:
oEvents(0).ListenerType = "XActionListener"
oEvents(0).EventMethod = "actionPerformed"
ciao
michela
Re: eventmethod related to 'item changed'
It's ok. It works!!
Thank you very much; I appreciate.
Have a nice easter.
Roberto
Thank you very much; I appreciate.
Have a nice easter.
Roberto