Changes the Bitmap for the command. Call this method to update the icon used for the command at runtime, after the command has already been instantiated.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub UpdateBitmap( _
ByVal bitmap As Bitmap _
) |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As BaseCommand
Dim bitmap As Bitmap
instance.UpdateBitmap(bitmap) |
Parameters
- bitmap
- A 16 by 16 Bitmap to represent the command. The color of the upper left pixel of the bitmap will be treated as the transparent color. This bitmap will replace any existing bitmap for the command.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also