Pictures on buttons


My name is Assaf Lasry and I have a small question.
I have a button on my form and I want to display
a picture on that button. How can you add pictures or graphics on a button face?

Thank you in advance.
Who is Participating?
rkot2000Connect With a Mentor Commented:
set style property = vbButtonGraphical and use picture propery to load a picture
Private Sub Form_Load()

'at design time change Command1.Style = 1
Command1.Picture = LoadPicture("c:\newpic.bmp")
End Sub
Also you can set the maskcolor to the background color of your picture, thus making it transparent
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.