你定义鼠标的图标一定是在窗口的属性中定义的。
你要在其它的控件属性中也定义才有效。

解决方案 »

  1.   

    Private Const OCR_NORMAL = 32512
    Private Const IDC_SIZEALL = 32646&
    Private Declare Function SetSystemCursor Lib "user32" (ByVal hcur As Long, ByVal id As Long) As Long
    Private Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long
    Private Declare Function DestroyCursor Lib "user32" (ByVal hCursor As Long) As Long
    Private Sub Form_Load()
        'KPD-Team 2001
        'URL: http://www.allapi.net/
        'E-Mail: [email protected]
        Dim hCursor As Long
        'load the 'Size-All' cursos
        hCursor = LoadCursor(ByVal 0&, IDC_SIZEALL)
        'replaces the contents of the system cursor specified by OCR_NORMAL with the contents of the 'size-all' cursor
        SetSystemCursor hCursor, OCR_NORMAL
        'clean up
        DestroyCursor hCursor
    End Sub