System.Windows.Forms.Cursor.CopyHandle Method

Copies the handle of this System.Windows.Forms.Cursor.

Syntax

public IntPtr CopyHandle ()

Returns

An IntPtr that represents the cursor's handle.

Remarks

The handle created as a result of calling this method must be disposed of when you are done with it because it will not be disposed of by the garbage collector.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0