KeyEventArgs.SuppressKeyPress プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > KeyEventArgs.SuppressKeyPress プロパティの意味・解説 

KeyEventArgs.SuppressKeyPress プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

キー イベントを基になるコントロールに渡すかどうかを示す値を取得または設定します

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

Public Property SuppressKeyPress As
 Boolean
Dim instance As KeyEventArgs
Dim value As Boolean

value = instance.SuppressKeyPress

instance.SuppressKeyPress = value
public bool SuppressKeyPress { get;
 set; }
public:
property bool SuppressKeyPress {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_SuppressKeyPress ()

/** @property */
public void set_SuppressKeyPress (boolean value)
public function get SuppressKeyPress
 () : boolean

public function set SuppressKeyPress
 (value : boolean)

プロパティ
キー イベントコントロール渡さない場合trueそれ以外場合false

解説解説

KeyDown などのイベント ハンドラでこのプロパティtrue設定すると、ユーザーによる入力防止できます

SuppressKeyPresstrue設定すると、Handledtrue設定されます。

使用例使用例

textBox1 という名前の TextBox が、数値キーストローク受け取らないようにするコード例を、次に示します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からKeyEventArgs.SuppressKeyPress プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からKeyEventArgs.SuppressKeyPress プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からKeyEventArgs.SuppressKeyPress プロパティを検索

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

辞書ショートカット

すべての辞書の索引

KeyEventArgs.SuppressKeyPress プロパティのお隣キーワード
検索ランキング

   

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



KeyEventArgs.SuppressKeyPress プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS