Skip to content

FindControl Method

Description

Finds and returns the specified control within the Tabbed ToolBar's collection of controls.

Syntax

Public Function FindControl( _
    Optional ByVal [Type] As Variant, _
    Optional ByVal [Id] As Variant, _
    Optional ByVal [Visible] As Variant, _
    Optional ByVal [Recursive] As Variant _
) As [CommandBarControl](XtremeCommandBars~CommandBarControl.md)

Parameters

  • Type: Type of control to find (button, popup button, split button, etc.). Can be any of the XTPControlType flags.
  • Id: Id of the control to find.
  • Visible:
  • True to look for a control that is visible,
  • False to look for a control that is hidden.
  • Leave blank to search both.
  • Recursive:
  • True to search recursively through all popup controls.
  • If False, only top-level controls will be searched; no controls contained in popups will be searched through.

Return Type

If successful, returns a reference to the CommandBarControl that was found.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.