Calling this method enables the wizardhost to capture certain key-press events like ESCAPE (which
usually results in cancelling the wizard) or ENTER (which usually results in finishing the wizard).
This is the default behaviour.
Syntax
Visual Basic (Declaration) | |
---|
Sub EnableKeyPreview()
|
Visual Basic (Usage) | Copy Code |
---|
Dim instance As IWizardHostService
instance.EnableKeyPreview()
|
C# | |
---|
void EnableKeyPreview()
|
C++/CLI | |
---|
void EnableKeyPreview();
|
Requirements
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
See Also