Visual Basic (Declaration) | |
---|---|
<DefaultValueAttribute()> <SRDescriptionAttribute("Determines whether keyboard events for controls on the form are registered with the form.")> Public Property KeyPreview As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CredentialsDialog Dim value As Boolean instance.KeyPreview = value value = instance.KeyPreview |
C# | |
---|---|
[DefaultValue()] [SRDescription("Determines whether keyboard events for controls on the form are registered with the form.")] public bool KeyPreview {get; set;} |
C++/CLI | |
---|---|
[DefaultValue()] [SRDescription("Determines whether keyboard events for controls on the form are registered with the form.")] public: property bool KeyPreview { bool get(); void set ( bool value); } |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2