Put a BREAK statement in LostFocus, then got forward step by step in the debugger until your out of LostFocus and then check the Focus property on the window.
Create a Boolean property flag in the window, set it to True in the Listbox.LostFocus event after the BREAK statement.
In the window’s paint event, put:
If flag Then
BREAK // Check the Focus property of the window here
End
[quote=162931:@Eli Ott]Create a Boolean property flag in the window, set it to True in the Listbox.LostFocus event after the BREAK statement.
In the window’s paint event, put:
If flag Then
BREAK // Check the Focus property of the window here
End[/quote]
I put that in all the windows that possible could be open… and it never happens
I had this once.
I added self.title = me.name to all the controls Gotfocus events
Another time, I found that the problem was that two controls close together were causing each other to refresh and the cursor never had a chance to appear.