I have a custom button class I've created and I'm overriding mouse events (enter, leave, click, down, ect) and controlling the visual appearance (namely backcolor) on the events.
I noticed if I have a dialog box pop up after a click of the button, the color assigned to the button as the "mousedown" event stays that way, even if the cursor isn't over the control. My assumption is that because the dialog prompt is on the same thread, it stop processing the location and state of the mouse at the time of dialog display.
Does anyone have any input on how to prevent this? I really don't want to manually create new threads for message boxes to be displayed in.