BCGControlBar Library for .NET
ButtonFromID Method (ToolbarMenuButton)




A command identifier of the button to return.
If true, the this button will be returned only if it has an execute handler.
Returns a current ToolbarMenuButton or a button from PopupMenuButtons collection with the specified command identifier.
Syntax
'Declaration
 
Public Overrides Function ButtonFromID( _
   ByVal id As Integer, _
   ByVal withExecuteHandler As Boolean _
) As ToolbarButton
'Usage
 
Dim instance As ToolbarMenuButton
Dim id As Integer
Dim withExecuteHandler As Boolean
Dim value As ToolbarButton
 
value = instance.ButtonFromID(id, withExecuteHandler)
public override ToolbarButton ButtonFromID( 
   int id,
   bool withExecuteHandler
)
public: ToolbarButton* ButtonFromID( 
   int id,
   bool withExecuteHandler
) override 
public:
ToolbarButton^ ButtonFromID( 
   int id,
   bool withExecuteHandler
) override 

Parameters

id
A command identifier of the button to return.
withExecuteHandler
If true, the this 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

ToolbarMenuButton Class
ToolbarMenuButton Members
Base Implementation in ButtonFromID

Send Feedback