>How can you keep a user from clicking the same command button more than once. They do a double click and spawn the click event twice.
I think training the users, as explained in my other message, would be the best solution.
The other alternative, a little more complicated, would be to set a form property (or a property for the button) in the button Click() Event, indicating at what moment the button was clicked. When the button is clicked a second time, the Click() Event compares this property, to see how much time has elapsed. If too little time has elapsed, nothing is done. Something like this:
This.AddProperty("tStartTime", datetime())
if datetime() - This.tStartTime < 0.5
?? chr(7)
return
endif
This.tStartTime = datetime()
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)