HOWTO: Display an Image in a Command Button

ID: Q218759


The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0


SUMMARY

The Visual Basic Command Button exposes a Picture property that you can use to display an image (bitmap, icon, metafile, GIF, JPEG). In order to make that image appear on the Command Button, you must also set its Style property to vbButtonGraphical or 1.

© Microsoft Corporation 1999, All Rights Reserved.
Contributions by David Sceppa, Microsoft Corporation

Additional query words:

Keywords : kbVBp kbVBp500 kbVBp600 kbGrpVBDB
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: March 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.