I have to click twice to give an item focus.

Hello,

This is what I have: One form. On the left side of this form is a panel. It has a child panel that is much larger but the same display area so it has scroll bars.

On the right side of the form I have a list box.

When one of the panels has focus I have to click on the select box twice to give an item focus. The same thing happens when I want to close the program. I have to click the X in the corner twice to close it.

It seems that the first click makes the panel lose focus, and the next click gives a different item focus.

Any ideas ... I tried to do things like setting the focus to the main form when the mouse leaves the bounds of the panel but that doesn't seem to work.

Thanks.


Answer this question

I have to click twice to give an item focus.

  • I have to click twice to give an item focus.