In Windows applications, you can define the display shape of the mouse by setting the control's Cursor property. The cursor property of a control, such as a button control, is used to set the type of the mouse pointer, which defaults to default.
Grammar:
Public virtual Cursor Cursor {get; set;}
Property value: A cursor that represents the cursor that is displayed when the mouse pointer is over the control.
Cursor: is a value, as shown in the table.
The value of the table cursor property
Value |
Description |
Appstarting |
Gets the cursor that is displayed when the application starts |
Arrow |
Get arrow cursor |
Cross |
Get a crosshair cursor |
Default |
Gets the default cursor, which is usually the arrow cursor |
Hand |
Gets the hand cursor, which is typically used when hovering over a web link |
Help |
Gets the help cursor, which is a combination of arrows and question marks |
Hsplit |
Gets the cursor that is displayed when the mouse is positioned over a horizontal splitter bar. |
iBEAM |
Gets the I-cursor, which is used to show where the text cursor appears when the mouse is clicked |
No |
Gets a cursor that indicates that a specific zone is not valid for the current operation |
Nomove2d |
Gets the cursor that is displayed when the mouse is not moving during the wheel operation, but the window can be scrolled both horizontally and vertically |
Nomovehoriz |
Gets the cursor that is displayed when the mouse is not moving during wheel operations, but the window can scroll horizontally |
Nomovevert |
Gets the cursor that is displayed when the mouse is not moving during the wheel operation, but the window can scroll in the vertical direction |
Paneast |
Gets the cursor that appears when the mouse moves during a wheel operation and the window is scrolled horizontally to the right |
Panne |
Gets the cursor that is displayed when the mouse moves during a wheel operation and when the window is scrolled horizontally, vertically up and to the right |
Pannorth |
Gets the cursor that appears when the mouse moves during a wheel operation and the window is scrolled vertically up |
Pannw |
Gets the cursor that is displayed when the mouse moves during a wheel operation and when the window is scrolled horizontally, vertically, and left |
Panse |
Gets the cursor that appears when the mouse moves during a wheel operation and the window is scrolled horizontally, vertically, downward, and to the right |
Pansouth |
Gets the cursor that appears when the mouse moves during a wheel operation and the window is scrolled vertically down |
Pansw |
Gets the cursor that is displayed when the mouse moves during a wheel operation and when the window is scrolled horizontally, vertically downward, and left. |
Panwest |
Gets the light that is displayed when the mouse moves during a wheel operation and the window is scrolled horizontally to the left |
Sizeall |
Gets a 4-sizing cursor that consists of four arrows that are joined, pointing to the four cardinal points, respectively. |
Sizenesw |
Get bidirectional diagonal (northeast/southwest) Resize cursor |
Sizens |
Get bidirectional vertical (North/south) resize cursor |
Sizenwse |
Get bidirectional diagonal (northwest/southeast) sizing cursor |
Sizewe |
Get bidirectional horizontal (west/east) resize cursor |
UpArrow |
Gets the up arrow cursor, which is typically used to identify the insertion point |
Vsplit |
Gets the cursor that appears when the mouse is positioned over a vertical splitter bar |
WaitCursor |
Gets the wait cursor, usually an hourglass shape |