BCGControlBar Library for .NET
FindButton Method (CommandBarManager)




The identifier of the target toolbar button.
Specifies, if the changes made during customization are not taken into consideration.
Specifies, if the handler of the target command button is added to the returned command button.
Returns the first occurance of the ToolbarButton with the specified command identifier from the toolbar buttons' collection of the command bars.
Syntax
'Declaration
 
Public Function FindButton( _
   ByVal commandID As Integer, _
   ByVal originalState As Boolean, _
   ByVal withExecuteHandler As Boolean _
) As ToolbarButton
'Usage
 
Dim instance As CommandBarManager
Dim commandID As Integer
Dim originalState As Boolean
Dim withExecuteHandler As Boolean
Dim value As ToolbarButton
 
value = instance.FindButton(commandID, originalState, withExecuteHandler)
public ToolbarButton FindButton( 
   int commandID,
   bool originalState,
   bool withExecuteHandler
)
public: ToolbarButton* FindButton( 
   int commandID,
   bool originalState,
   bool withExecuteHandler
) 
public:
ToolbarButton^ FindButton( 
   int commandID,
   bool originalState,
   bool withExecuteHandler
) 

Parameters

commandID
The identifier of the target toolbar button.
originalState
Specifies, if the changes made during customization are not taken into consideration.
withExecuteHandler
Specifies, if the handler of the target command button is added to the returned command button.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CommandBarManager Class
CommandBarManager Members

Send Feedback