BCGControlBar Library for .NET
ButtonFromID Method (ToolbarButton)




The identifier of the button to return.
If true, the  button will be returned only if it has an execute handler.
Called by framework to get any toolbar button by its identifier. If the identifier of this button is equal to the identifier from parameter, the current button will be returned, otherwise, null reference.
Syntax
'Declaration
 
Public Overridable Function ButtonFromID( _
   ByVal id As Integer, _
   ByVal withExecuteHandler As Boolean _
) As ToolbarButton
'Usage
 
Dim instance As ToolbarButton
Dim id As Integer
Dim withExecuteHandler As Boolean
Dim value As ToolbarButton
 
value = instance.ButtonFromID(id, withExecuteHandler)
public virtual ToolbarButton ButtonFromID( 
   int id,
   bool withExecuteHandler
)
public: virtual ToolbarButton* ButtonFromID( 
   int id,
   bool withExecuteHandler
) 
public:
virtual ToolbarButton^ ButtonFromID( 
   int id,
   bool withExecuteHandler
) 

Parameters

id
The identifier of the button to return.
withExecuteHandler
If true, the  button will be returned only if it has an execute handler.
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

ToolbarButton Class
ToolbarButton Members

Send Feedback