@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The SetSystemCursor API !!!!C# Signature: [DllImport("user32.dll")] static extern bool SetSystemCursor(IntPtr hcur, uint id); !!!!VB.NET Signature: [<DllImport("user32.dll")>] _ Private Shared Function SetSystemCursor(ByVal hCursor As IntPtr, ByVal id As Integer) As Boolean End Function !!!!User-Defined Types: enum OCR_SYSTEM_CURSORS : uint { /// <summary> /// Standard arrow and small hourglass /// </summary> OCR_APPSTARTING = 32650, /// <summary> /// Standard arrow /// </summary> OCR_NORMAL = 32512, /// <summary> /// Crosshair /// </summary> OCR_CROSS = 32515, /// <summary> /// Windows 2000/XP: Hand /// </summary> OCR_HAND = 32649, /// <summary> /// Arrow and question mark /// </summary> OCR_HELP = 32651, /// <summary> /// I-beam /// </summary> OCR_IBEAM = 32513, /// <summary> /// Slashed circle /// </summary> OCR_NO = 32648, /// <summary> /// Four-pointed arrow pointing north, south, east, and west /// </summary> OCR_SIZEALL = 32646, /// <summary> /// Double-pointed arrow pointing northeast and southwest /// </summary> OCR_SIZENESW = 32643, /// <summary> /// Double-pointed arrow pointing north and south /// </summary> OCR_SIZENS = 32645, /// <summary> /// Double-pointed arrow pointing northwest and southeast /// </summary> OCR_SIZENWSE = 32642, /// <summary> /// Double-pointed arrow pointing west and east /// </summary> OCR_SIZEWE = 32644, /// <summary> /// Vertical arrow /// </summary> OCR_UP = 32516, /// <summary> /// Hourglass /// </summary> OCR_WAIT = 32514 } !!!!Notes: See example at http://www.pinvoke.net/default.aspx/user32/copyicon.html !!!!Tips & Tricks: Please add some! !!!!Sample Code: enum IDC_STANDARD_CURSORS : int { IDC_ARROW = 32512, IDC_IBEAM = 32513, IDC_WAIT = 32514, IDC_CROSS = 32515, IDC_UPARROW = 32516, IDC_SIZE = 32640, IDC_ICON = 32641, IDC_SIZENWSE = 32642, IDC_SIZENESW = 32643, IDC_SIZEWE = 32644, IDC_SIZENS = 32645, IDC_SIZEALL = 32646, IDC_NO = 32648, IDC_APPSTARTING = 32650, IDC_HELP = 32651 } private void SetSystemCursor() { IntPtr hcursor = LoadCursor(IntPtr.Zero, IDC_ARROW); bool ret_val = SetSystemCursor(hcursor, OCR_NORMAL); } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: SetSystemCursor@msdn on MSDN
Edit user32.SetSystemC...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.