ArcObjects Library Reference (SystemUI)  

ISystemMouseCursor.LoadFromFile Method

Loads mouse cursor from file. If file name uses relative path, the path must be relative to current application executable.

[Visual Basic .NET]
Public Sub LoadFromFile ( _
    ByVal fileName As String _
)
[C#]
public void LoadFromFile (
    string fileName
);
[C++]
HRESULT LoadFromFile(
  BSTR fileName
);
[C++]

Parameters

fileName [in]   fileName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The LoadFromFile method creates a SystemMouseCursor based upon the data in the specified file. Files containing cursor data may be in either cursor (.cur) or animated cursor (.ani) format. If file name uses relative path, the path must be relative to current application executable. Use the Cursor property to get the handle to the newly loaded cursor.

See Also

ISystemMouseCursor Interface