Microsoft KB Archive/218759

= How To Display an Image in a Command Button =

Article ID: 218759

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q218759



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.

Keywords: kbhowto KB218759

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.