FindPane Method
Description
Finds and returns a reference to the specified StatusBarPane.
Syntax
Public Function FindPane( _
ByVal [Id](#) As Long _
) As [StatusBarPane](XtremeCommandBars~StatusBarPane.md)
Parameters
- Id: Id of the StatusBarPane to find.
Return Type
Returns a reference to the StatusBarPane with the specified Id. If no pane exists with the Id, then Null is returned.
Remarks
Finds and returns a reference to a StatusBarPane within the StatusBar's collection of Panes.
Example
This sample illustrates how to use the FindPane method to find a pane.
Dim FindPane As StatusBarPane
' Finds and returns a reference to the StatusBar Pane with ID ID_INDICATOR_PROGRESS
Set FindPane = frmMain.CommandBars.StatusBar.FindPane(ID_INDICATOR_PROGRESS)
' Check to make sure pane exists
If Not FindPane Is Nothing Then
' Hide the Pane
FindPane.Visible = False
End If
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.