Listbox double-click odditity

I have a window with a two pane tab panel. Each pane has a listbox. Each listbox has a double-click event which results in a new window being opened to display the data in the double-clicked row. Each window is different. The issue is that when I am in tab pane 2 and double-click it opens both windows. I can’t figure out why the window for pane 1 opens?

Have a look at the double-click action. I have several of these in my apps and they behave just like expected. It might be that you reference something in a wrong place and both windows open.