Custom cursor in ActiveX control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vekipeki
    Recognized Expert New Member
    • Nov 2007
    • 229

    #1

    Custom cursor in ActiveX control

    Does anyone know if there is a way to set a custom mouse cursor for an ActiveX control in .Net? I am adding some mouse functionality to an existing ActiveX control, and would like to change the cursor shape according to the current state.

    It's a Windows Forms app, with an ActiveX control wrapped in the (automatically generated) class (derived from AxHost). Although AxHost is derived from Windows.Forms.C ontrol, the public Cursor property does nothing.

    I tried P/Invoking User32.dll SetCursor, but control still shows the system default cursor.
Working...