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.
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.