DateTimePicker.IsInputKey(Keys) DateTimePicker.IsInputKey(Keys) DateTimePicker.IsInputKey(Keys) DateTimePicker.IsInputKey(Keys) Method

定義

判斷指定的按鍵是標準輸入按鍵或需要前置處理的特殊按鍵。Determines whether the specified key is a regular input key or a special key that requires preprocessing.

protected:
 override bool IsInputKey(System::Windows::Forms::Keys keyData);
protected override bool IsInputKey (System.Windows.Forms.Keys keyData);
override this.IsInputKey : System.Windows.Forms.Keys -> bool
Protected Overrides Function IsInputKey (keyData As Keys) As Boolean

參數

keyData
Keys Keys Keys Keys

其中一個 Keys 值。One of the Keys values.

傳回

如果指定的按鍵是標準輸入按鍵,則為 true,否則為 falsetrue if the specified key is a regular input key; otherwise, false.

備註

在視窗訊息前置處理期間呼叫這個方法, 以判斷指定的索引鍵是否為應直接傳送至控制項的一般輸入索引鍵, 或應前置處理的特殊索引鍵 (例如 PAGE UP 和 PAGE DOWN)。Call this method during window-message preprocessing to determine whether the specified key is a regular input key that should be sent directly to the control or a special key (such as PAGE UP and PAGE DOWN) that should preprocessed. 在後者的情況下, 只有在前置處理階段未使用此索引鍵時, 才將其傳送給該控制項。In the latter case, send the key to the control only if it is not consumed by the preprocessing phase.

適用於

另請參閱