Code :I do a drag(1) in the mousemove of a listbox when detecting the mouse button one is down to manually initiate a dragdrop operation. In mousemove of the listbox, if the mouse button is not down I do a drag(0) to cancel. When I right click a command button directly after attempting a dragdrop in the listbox, the right click event doesn't fire. However, the second time I right click the command button right click event fires.
Scenario :1) Highlight a row in the listbox.
2) Start drop drag towards command button
3) Stop drag drop while still over the listbox
4) Right click the command button (no message pops up)
5) Right click the command button once more (i get the message pop up)
Question :How come I don't get a popup message in step 4, but do in step 5? How can I remedy this? I need to keep the manual drag drop.
Thanks in advance.
Here is a link to my test code.
http://www.vulcaninc.com/testcase.zip