ToolStripDropDown.ProcessDialogKey(Keys) ToolStripDropDown.ProcessDialogKey(Keys) ToolStripDropDown.ProcessDialogKey(Keys) ToolStripDropDown.ProcessDialogKey(Keys) Method

定义

处理对话框键。Processes a dialog box key.

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

参数

keyData
Keys Keys Keys Keys

Keys 值之一,表示要处理的键。One of the Keys values that represents the key to process.

返回

如果键已由控件处理,则为 true;否则为 falsetrue if the key was processed by the control; otherwise, false.

注解

在消息预处理过程中,将调用此方法来处理对话框键,如选项卡、返回、转义和箭头键。This method is called during message preprocessing to handle dialog box keys, such as TAB, RETURN, ESCAPE, and arrow keys. 仅当IsInputKey方法指示控件未处理该键时,才调用此方法。This method is called only if the IsInputKey method indicates that the control is not processing the key. ProcessDialogKey是将字符发送到父级的Control.ProcessDialogKey方法,如果控件没有false父级,则返回。The ProcessDialogKey simply sends the character to the parent's Control.ProcessDialogKey method, or returns false if the control has no parent. Form类将重写此方法以执行对话框键的实际处理。The Form class overrides this method to perform actual processing of dialog box keys. 仅当控件承载于 Windows 窗体应用程序或 ActiveX 控件中时,才会调用此方法。This method is only called when the control is hosted in a Windows Forms application or as an ActiveX control.

安全性

UIPermission
用于继承类的所有窗口以调用此方法。for all windows for inheriting classes to call this method. 关联的AllWindows UIPermissionWindow枚举: 值。Associated enumeration: AllWindows value of UIPermissionWindow.

适用于