Cursor.Show メソッドとは? わかりやすく解説

Cursor.Show メソッド

カーソル表示します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

解説解説
使用例使用例

マウス ポインタボタンクライアント領域入ったときに、カーソルを非表示にするコード例次に示します同様にマウス ポインタボタンクライアント領域から離れたときにはカーソルを再び表示します。この例では、myButton という名前の Button配置されForm が必要です。

Private Sub myButton_MouseEnter(sender As
 Object, e As System.EventArgs) Handles
 myButton.MouseEnter
   ' Hide the cursor when the mouse pointer enters the button.
   Cursor.Hide()
End Sub 'myButton_MouseEnter
      
      
Private Sub myButton_MouseLeave(sender As
 Object, e As System.EventArgs) Handles
 myButton.MouseLeave
   ' Show the cursor when the mouse pointer leaves the button.
   Cursor.Show()
End Sub 'myButton_MouseLeave
      
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();
}
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();
   }
private void myButton_MouseEnter(Object sender,
 System.EventArgs e)
{
    // Hide the cursor when the mouse pointer enters the button.
    Cursor.Hide();
} //myButton_MouseEnter

private void myButton_MouseLeave(Object sender,
 System.EventArgs e)
{
    // Show the cursor when the mouse pointer leaves the button.
    Cursor.Show();
} //myButton_MouseLeave
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Cursor.Show メソッド」の関連用語

Cursor.Show メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Cursor.Show メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS