I have a top level modeless form with text boxes and a grid with multiple columns, rowsource is a .dbf which I append blank records to. All works fine. Now, I have added a listbox which I enable/visible when user has keyed 4 characters into grid column 1. The listbox provides a list of up to 10 available codes they may choose from that "match" what they have entered so far. They can click a listbox item, and in the click event it pastes the code into the grid column, then returns focus to the grid column (from LostFocus code in listbox, I set focus to grid). Double click will paste and continue on to next grid column. Works great MOST (80%) of the time - but:
Randomly, the click or double-click event WON't fire when you click or dblclick a ListBox item. The ListBox.MouseDown fires, then the Form.MouseDown, then some MouseMove(and I ain't movin it - ListBox Mousedown and Form MouseUp have same coordinates!), then the Form.MouseUp, then the Form.Click!! The ListBox.Click doesn't fire, and my focus ends up in the textbox on the form with tab index 1. (all this info thanks to the debugger)
Has anyone out there experienced this? I am spinning my wheels trying to identify a cause.
Randomly, the click or double-click event WON't fire when you click or dblclick a ListBox item. The ListBox.MouseDown fires, then the Form.MouseDown, then some MouseMove(and I ain't movin it - ListBox Mousedown and Form MouseUp have same coordinates!), then the Form.MouseUp, then the Form.Click!! The ListBox.Click doesn't fire, and my focus ends up in the textbox on the form with tab index 1. (all this info thanks to the debugger)
Has anyone out there experienced this? I am spinning my wheels trying to identify a cause.