Cut
Run
Expand Minimize
This topic has not yet been rated - Rate this topic

Execute Method (IDTWizard Interface)

Visual Studio .NET 2003

Occurs when a wizard is launched from either the Add Item or the New Project dialog box.

[Visual Basic .NET]
Public Sub Execute( _
   ByVal Application As Object, _
   ByVal hwndOwner As Long, _
   ByVal ContextParams() As Variant, _
   ByVal CustomParams() As Variant, _
   retval As wizardResult _
) 
[Visual Basic 6]
Sub Execute( _
   ByVal Application As Object, _
   ByVal hwndOwner As Long, _
   ByVal ContextParams() As Variant, _
   ByVal CustomParams() As Variant, _
   retval As wizardResult _
) 
[C++]
HRESULT __stdcall Execute(
   IDispatch* Application,
   long hwndOwner,
   SAFEARRAY** ContextParams,
   SAFEARRAY** CustomParams,
   wizardResult* retval
);
[C#]
void Execute(
   object Application,
   int hwndOwner,
   object[] ContextParams,
   object[] CustomParams,
   ref wizardResult retval
);
[JScript .NET]
public function Execute(
   Application : Object,
   hwndOwner : int,
   ContextParams : Object[],
   CustomParams : Object[],
   retval : wizardResult
)

Parameters

Application
A dispatch pointer to the highest level automation object for the Visual Studio .NET environment.
hwndOwner
The hWnd handle for the parent of the wizard's window.
ContextParams
An array of elements that vary depending on whether your wizard is launched from the Add Items or the New Project dialog box. See ContextParams for available values.
CustomParams
An array of user-defined parameters, determined by the param= statements in the wizard's .VSZ file. You can use the parameters passed in this array to customize a wizard's behavior and role.
retval
A WizardResult constant specifying the results of the wizard:

Remarks

Insert the code you want the wizard to run in the Execute method.

See Also

Creating a Wizard

Applies To: IDTWizard Interface

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.