D
Doug
I am using the following code to create a custom mouse pointer when the
mouse is over a text box. However, if I move the mouse over the text box
for any period of time Microsoft Access runs out of memory. I get an "out
of memory" error and Access starts behaving erratically and then bombs.
Does anyone know how to do this without running Access out of memory?
Thanks.
***
Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA"
(ByVal lpFileName As String) As Long
Declare Function SetCursor Lib "user32"(ByVal hCursor As Long) As Long
-------------------
Function PointM(strPathToCursor As String)
Dim lngRet As Long
lngRet = LoadCursorFromFile(strPathToCursor)
lngRet = SetCursor(lngRet)
End Function
-------------------
Private Sub Label0_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
PointM (CurrentProject.Path & "\testcursor.cur")
End Sub
mouse is over a text box. However, if I move the mouse over the text box
for any period of time Microsoft Access runs out of memory. I get an "out
of memory" error and Access starts behaving erratically and then bombs.
Does anyone know how to do this without running Access out of memory?
Thanks.
***
Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA"
(ByVal lpFileName As String) As Long
Declare Function SetCursor Lib "user32"(ByVal hCursor As Long) As Long
-------------------
Function PointM(strPathToCursor As String)
Dim lngRet As Long
lngRet = LoadCursorFromFile(strPathToCursor)
lngRet = SetCursor(lngRet)
End Function
-------------------
Private Sub Label0_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
PointM (CurrentProject.Path & "\testcursor.cur")
End Sub