Visual Basic Reference
Returns or sets a custom mouse icon.
object.MouseIcon = LoadPicture(pathname)
object.MouseIcon [= picture]
The MouseIcon property syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|pathname||A string expression specifying the path and filename of the file containing the custom icon.|
|picture||The Picture property of a Form object, PictureBox control, or Image control.|
The MouseIcon property provides a custom icon that is used when the MousePointer property is set to 99.
The MouseIcon property provides your program with easy access to custom cursors of any size, with any desired hot spot location. Visual Basic does not load animated cursor (.ani) files, even though 32-bit versions of Windows support these cursors.