i created a cellClick-Event to a listbox with a simple line of code to display the current list index

but it always shows the previous listindex, so i have to click twice to get the current listindex…why? Do i really have to refresh something after?


Well, it actually makes sense.

The moment you click, the cell you clicked on is not yet selected (that happens after the click).
Just copy and paste your code to the Change event, as that one fires after the listindex is changed.

thanks for clearing that up…