I'm seeing some weird business going on and I'm wondering if there's an easy
workaround or if I have to go into hack mode. In non-winforms apps you must
have a right mouse down followed by a right mouse up in order to get a
context menu. One specific example is the tool bar which brings up the
standard (Restore,Move,Size,Maximize,Close) context menu. However, it seems
in winforms you only need a mouse up. Now in the control I'm creating I
capture the mouse on mousedown and do seperate actions on mouse move
depending on whether the right or left mouse buttons are depressed. But when
I've pressed the right button, capturing the mouse, and then released over
the toolbar(in order to release control) I get the context menu popping up.
Oddly enough, after dismiss the context menu the mouseup event for my
control fires. Obviously this is not the behavior I want. Seems weird the
winforms team decided to raise context on mouseup alone. But fine. Do I have
any options besides installing a message filter?
Thanks in Advance,
Robert Conde