Here's an odd one in VB6.
Create a form with a button on it and a text box. Button's CausesValidation property set to true.
Code something (e.g. debug.print "hi") in the text box's validate procedure.
When I use the mouse to click on the button the MyTextBox_Validate procedure is executed twice. If I tab from text box to button, it is only executed once, as it should be.
Why is this the case, and how can I stop it?
PS - I only introduced the text box to provide an easy example. I initially observed this with a list view.
PPS - I've rated the question 20 points because I suspect the answer might be "Sorry, but that's the way it works in VB6". As I don't believe in shooting the messenger, I'll award the 20 points and an "A" to a convincing answer along those lines. I'll increase the points for an actual solution.