Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavBarControl.SetCursor(Cursor) Method

Sets the mouse pointer type when it is over the control.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public virtual void SetCursor(
    Cursor newCursor
)

#Parameters

Name Type Description
newCursor Cursor

A System.Windows.Forms.Cursor descendant specifying the cursor type (available cursor types can be accessed via properties of the System.Windows.Forms.Cursors class).

#Remarks

The cursor type used when the mouse pointer is over the control is specified by the NavBarControl.Cursor property. However, mouse pointer type can be changed for following reasons:

The SetCursor method is used to change cursor type for the described reasons. The NavBarControl.RestoreCursor method turns the cursor type back to a value specified by the NavBarControl.Cursor property.

This method is not designed to be used directly from your code.

See Also