Control.ShowKeyboardCues 属性

获取一个值,该值指示用户界面是否处于适当的状态以显示或隐藏键盘快捷键。

**命名空间:**System.Windows.Forms
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)

语法

声明
Protected Friend Overridable ReadOnly Property ShowKeyboardCues As Boolean
用法
Dim value As Boolean

value = Me.ShowKeyboardCues
protected internal virtual bool ShowKeyboardCues { get; }
protected public:
virtual property bool ShowKeyboardCues {
    bool get ();
}
/** @property */
protected boolean get_ShowKeyboardCues ()
protected internal function get ShowKeyboardCues () : boolean

属性值

如果键盘快捷键可见,则为 true;否则为 false

备注

对于在 Windows 窗体设计器中创建的控件,默认情况下键盘快捷键是可见的。

有关此功能的更多信息,请参见 MSDN Library(位于 https://www.microsoft.com/china/msdn/library. Windows Platform SDK 的 WM_QUERYUISTATEWM_UPDATEUISTATEWM_UISF_CHANGEUISTATE 主题。

Windows 2000, Windows XP Home Edition、Windows XP Professional x64 Edition、Windows Server 2003 平台说明:ShowKeyboardCues 属性设置为 true,将导致控件符合 Windows 2000 行为,即在用户执行键盘操作之前隐藏键盘提示。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

Control 类
Control 成员
System.Windows.Forms 命名空间
UICues
Control.ShowFocusCues 属性
ChangeUICues