Listbox ConstructContextualMenu

I noticed that when I rightclick in a ListBox with a contextual menu the ‘Change’ event is fired too. How to get rid of that?

On the first line of the Change event add

If isContextualClick then return

Hi Michel,

Thanks, but is this undesirable behaviour (for me it is)?

[quote=130775:@Alexander van der Linden]Hi Michel,

Thanks, but is this undesirable behaviour (for me it is)?[/quote]

Depends. When right clicking changes the selection, Change should fire. It should not when one clicks on a row that is already selected, though, I think.

The latter is the case. Thanks.