Console.CursorVisible Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a value indicating whether the cursor is visible.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

static member CursorVisible : bool with get, set

Property Value

Type: System.Boolean

true if the cursor is visible; otherwise, false.

Exception Condition

The user does not have permission to perform this action.


An I/O error occurred.


The effect of a set operation persists until the termination of the application that performs the operation. The cursor visibility reverts to its original value after the application terminates.

This example demonstrates the CursorVisible property. The example makes the cursor visible if the first column of input is a '+' character or invisible if the input is a '-' character.

No code example is currently available or this language may not be supported.


for modifying safe top-level windows and subwindows. Associated enumeration: UIPermissionWindow.SafeTopLevelWindows

.NET Framework
Available since 2.0
Return to top