ToolStripControlHost.ProcessCmdKey(Message, Keys) 方法

定義

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

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

參數

m
Message

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

keyData
Keys

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

傳回

所有情況下都是 falsefalse in all cases.

安全性

SecurityPermission
適用于立即呼叫端和繼承類別,以呼叫此方法。for the immediate caller and inheriting classes to call this method. 關聯的列舉型別:UnmanagedCodeAssociated enumeration: UnmanagedCode.

適用於