In my testing both of Fabio's code examples worked fine. VFP9, Windows XP Pro SP2
I would check to make sure the icon file you pointed it to really is an .ico file. When I tested it with an actual .ico file, it works great, but when I tested it with a .bmp or .gif file it didn't change the icon.
PROCEDURE Grid1.customMousePointer(nWhere,nRelRow,nRelCol)
this.MouseIcon = "C:\icons\icons\apple.ico"
RETURN 99
ENDDEFINE
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"