Поделиться через


WizComboClass.focus Method

Sets the cursor focus to the wizard combo box.

Namespace:  Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)

Syntax

'Declaration
Public Overridable Sub focus
public virtual void focus()
public:
virtual void focus()
abstract focus : unit -> unit 
override focus : unit -> unit 
public function focus()

Implements

IWizCombo.focus()

Examples

//Taken from the Visual C++ Generic Class wizard

function InitDocument(document)
{
   setDirection();
   CLASS_NAME.focus();
   
   if (window.external.FindSymbol("DOCUMENT_FIRST_LOAD"))
   {
      var L_WizardDialogTitle_Text = "Generic C++ Class Wizard";
      window.external.AddSymbol("WIZARD_DIALOG_TITLE", L_WizardDialogTitle_Text);
      window.external.SetDefaults(document);
   }
   window.external.Load(document);
}

.NET Framework Security

See Also

Reference

WizComboClass Class

Microsoft.VisualStudio.VsWizard Namespace

Other Resources

Designing a Wizard

Visual C++ Extensibility Object Model