C # Defines the mouse pointer shape

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.