Click here to Skip to main content
15,896,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have a ContextMenu that opens on a system level event. I have hooked a right mouse button down message to display this menu on an AxShockwaveFlash object. The problem is that apparently neither of these classes inherit from Control (so they do not have the Control.Cursor property). If my cursor is an IBeam in the AxShockwaveFlash object, my cursor remains an IBeam, even over my ContextMenu.

Is there any way to override the cursor in this situation? I have tried changing the parent control's cursor (this.Parent.Cursor) but this, expectantly, yields no change.
Posted

1 solution

I would expect you'd use p/invoke to call SetCursor ( that's a guess ) or something similar which can work with the Handle on the object ( assuming it has one, that's it's hWnd )
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900