Cursor::Hide Method ()
.NET Framework (current version)
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(); } 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
.NET Framework
Available since 1.1
Available since 1.1
Show: