Class FormControlExtender
What a form adds to each of its controls: the members and events of the Microsoft Forms Control class, the extender every control of a form is
wrapped in.
public static class FormControlExtender
- Inheritance
-
FormControlExtender
- Inherited Members
Remarks
A control of a form is an object of its own class (MSForms.TextBox) and of MSForms.Control: what the form keeps of each of its
controls - its position (Left, Top), its place in the tab order (TabIndex), Visible, SetFocus - and the events the form
raises for it (Enter, Exit, BeforeUpdate, AfterUpdate). The control's class does not declare them, and an object of that class
declared by the code (Dim t As MSForms.TextBox) does not list them; the field of a form's class that the control is does
(DesignerControl). Both are described by the Microsoft Forms type library, which a project that has forms references.
Fields
ClassName
The name of the extender class in the Microsoft Forms library.
public const string ClassName = "Control"
Field Value
Methods
EventsOf(VBTypeMemberSymbol, VBClassModuleSymbol, ISymbolResolver)
The events the procedures named for variable handle: those of source, its class, and - when it is a form's
control - those of the extender after them.
public static IEnumerable<VBEventMemberSymbol> EventsOf(VBTypeMemberSymbol variable, VBClassModuleSymbol source, ISymbolResolver resolver)
Parameters
variableVBTypeMemberSymbolA
WithEventsvariable of a class module.sourceVBClassModuleSymbolThe class the variable is declared as.
resolverISymbolResolverWhat finds the extender class.
Returns
Of(ISymbolResolver, Uri)
The extender class, MSForms.Control, as resolver has it; null when the project does not reference
Microsoft Forms.
public static VBClassModuleSymbol? Of(ISymbolResolver resolver, Uri handle)
Parameters
resolverISymbolResolverWhat finds the classes of the project's libraries.
handleUriWhere the name is resolved from.