Got these two forms which I bring up one at a time. The forms have a single listbox where the users picks an item, which I catch in listbox_Click, then unload the first form and bring up the second form with the next question.
Problem:
When the first form closes and the second form comes up, the mouse button is still clicked and causes the listbox_Click event on the second form to fire. It happens so fast the user may not even notice a form popped up, that they 'clicked' an option and the form unloaded.
Any good ideas to get around this?
Currently, I've done away with _Click and am using _DblClick and it's working fine, but I'd like to use _Click if I can get around this issue. I considered moving the locations of the forms as well so they don't overlap, but of course the best option is to have them come up in the center of the screen (like all other pop-up windows).
Problem:
When the first form closes and the second form comes up, the mouse button is still clicked and causes the listbox_Click event on the second form to fire. It happens so fast the user may not even notice a form popped up, that they 'clicked' an option and the form unloaded.
Any good ideas to get around this?
Currently, I've done away with _Click and am using _DblClick and it's working fine, but I'd like to use _Click if I can get around this issue. I considered moving the locations of the forms as well so they don't overlap, but of course the best option is to have them come up in the center of the screen (like all other pop-up windows).