Sets an application-defined cursor for the specified window. Use this function to set the cursor from an image stored in a file.

Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public static bool SetCursor(
	Control ctrl,
	string fileName,
	int type
)

Parameters

ctrl
Type: System.Windows.Forms..::..Control
fileName
Type: System..::..String
The name of a cursor or an icon file.
type
Type: System..::..Int32

Return Value

See Also