>We use ON KEY LABEL RightMouse to exit our forms. The issue is coming up now if there is a form on top of another form, then the Right Click will close both forms. In tracing, it looks like clicking the right mouse button causes two actions, when it goes down and when it comes back up. I would have thought it would only happen on the Up after a Down, but that doesn't seem to be the case. Anything I can do to still keep this functionality and have it work correctly?
You might use the RightClick() or the MouseDown() event.
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)