Cursor.Hide Method
.NET Framework 4
Hides the cursor.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following code example hides the cursor when the mouse pointer enters the button's client area. Likewise, when the mouse pointer leaves the button's client area, the cursor is shown again. This example requires a Form with a Button named myButton.
private void myButton_MouseEnter(object sender, System.EventArgs e) { // Hide the cursor when the mouse pointer enters the button. Cursor.Hide(); } private void myButton_MouseLeave(object sender, System.EventArgs e) { // Show the cursor when the mouse pointer leaves the button. Cursor.Show(); }
-
UIPermission
for all windows call this method. Associated enumeration: UIPermissionWindow.AllWindows
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
typo?
Under .NET Framework Security, it says:
UIPermission
for all windows call this method....
This should probably read :
"...for all windows which call this method...."?
UIPermission
for all windows call this method....
This should probably read :
"...for all windows which call this method...."?
- 8/17/2010
- Limited Atonement
- 8/24/2010
- Thomas Lee