windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-855e688a.md
Occurs when the mouse cursor enters the diagram control.
Namespace : DevExpress.XtraDiagram
Assembly : DevExpress.XtraDiagram.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomCursorEventArgs> CustomCursor
<DiagramCategory(DiagramCategory.Behavior)>
Public Event CustomCursor As EventHandler(Of DiagramCustomCursorEventArgs)
The CustomCursor event's data class is DevExpress.XtraDiagram.DiagramCustomCursorEventArgs.
Use the CustomCursor event to display a custom mouse cursor. The following example demonstrates a CustomCursor event handler that replaces the standard cursor.
private void diagramControl_CustomCursor(object sender, DiagramCustomCursorEventArgs e) {
e.Cursor = new Cursor("/Resources/CustomCursor.ani");
}
Private Sub diagramControl_CustomCursor(ByVal sender As Object, ByVal e As DiagramCustomCursorEventArgs)
e.Cursor = New Cursor("/Resources/CustomCursor.ani")
End Sub
See Also