ContainerControl.ProcessCmdKey(Message, Keys) ContainerControl.ProcessCmdKey(Message, Keys) ContainerControl.ProcessCmdKey(Message, Keys) ContainerControl.ProcessCmdKey(Message, Keys) Method

定義

處理命令按鍵。Processes a command key.

protected:
 override bool ProcessCmdKey(System::Windows::Forms::Message % msg, System::Windows::Forms::Keys keyData);
protected override bool ProcessCmdKey (ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData);
override this.ProcessCmdKey : Message * System.Windows.Forms.Keys -> bool
Protected Overrides Function ProcessCmdKey (ByRef msg As Message, keyData As Keys) As Boolean

參數

msg
Message Message Message Message

由參考所傳遞的 Message,代表要處理的視窗訊息。A Message, passed by reference, that represents the window message to process.

keyData
Keys Keys Keys Keys

其中一個 Keys 值,表示要處理的按鍵。One of the Keys values that represents the key to process.

傳回

如果字元已由控制項處理,則為 true,否則為 falsetrue if the character was processed by the control; otherwise, false.

適用於

另請參閱