This documentation is archived and is not being maintained.

MouseIcon Property (ActiveX Controls)

Visual Studio .NET 2003

Returns or sets a custom mouse icon.


object.MouseIcon = LoadPicture(pathname)

object.MouseIcon [= picture]

The MouseIcon property syntax has these parts:

Part Description
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.

You can use the MouseIcon property to load either cursor or icon files. 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.

See Also

Applies To: Masked Edit Control