MouseIcon Property

Purpose

Returns or sets a custom mouse icon.

Syntax

Object.MouseIcon [ = picture ]

Object:Ocx Object
value:Picture Object

Description

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.

Example

OpenW 1

Local mc As Picture

Set mc = CreatePicture(LoadIcon(Null, IDI_WARNING))

Set Win_1.MouseIcon = mc

Win_1.MousePointer = 99     // basIcon

Do

Sleep

Until IsNothing(Me)

Set mc = Nothing

Remarks

See Also

MouseCursor, MouseIcon, MousePointer, DefMouse

{Created by Sjouke Hamstra; Last updated: 19/10/2014 by James Gaite}