Hello,
In my app I have a UI control that responds to MouseUp events and opens a
FileDialog. If an item in the dialog is double-clicked (instead of clicking
on it then clicking OK) AND that item is over my UI control, the final
MouseUp of the double-click is registered by my control and its handler is
called, opening the FileDialog again.
The events happen in this order:
MouseDown
MouseUp
Dialog Opens
Double-click in dialog
Dialog closes
MouseUp
DialogOpens, etc.
I'm looking for suggestions on how to correct this. I've tried removing the
MouseUp handler when the FileDialog is opened, and adding it beck when it is
closed but that doesn't work; it still gets called. I've tried looking for
a way to "eat" the MouseUp but haven't found a way that works. For example,
purging the event queue or marking the event as being handled/ignored.
So, any suggestions?
Keith