BCGControlBar Library for .NET
SetCustomImage Method




An image to set on the button.
Specified if an old custom image associated with the toolbar should be deleted.
Sets a specified custom image to the toolbar button. In BCGSoft.ControlBars namespace  this function is called by the framework on creating a copy of the button.
Syntax
'Declaration
 
Public Sub SetCustomImage( _
   ByVal value As Image, _
   ByVal disposeOldImage As Boolean _
) 
'Usage
 
Dim instance As ToolbarButton
Dim value As Image
Dim disposeOldImage As Boolean
 
instance.SetCustomImage(value, disposeOldImage)
public void SetCustomImage( 
   Image value,
   bool disposeOldImage
)
public: void SetCustomImage( 
   Image* value,
   bool disposeOldImage
) 
public:
void SetCustomImage( 
   Image^ value,
   bool disposeOldImage
) 

Parameters

value
An image to set on the button.
disposeOldImage
Specified if an old custom image associated with the toolbar should be deleted.
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