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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.VsWizard Namespace