?
Solved

Pictures on buttons

Posted on 2001-06-26
3
Medium Priority
?
214 Views
Last Modified: 2010-05-02
Hello!

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.
0
Comment
Question by:AssafL
3 Comments
 
LVL 5

Accepted Solution

by:
rkot2000 earned 200 total points
ID: 6228241
set style property = vbButtonGraphical and use picture propery to load a picture
0
 
LVL 18

Expert Comment

by:deighton
ID: 6228248
Private Sub Form_Load()

'at design time change Command1.Style = 1
Command1.Picture = LoadPicture("c:\newpic.bmp")
End Sub
0
 

Expert Comment

by:mhowling
ID: 6230335
Also you can set the maskcolor to the background color of your picture, thus making it transparent
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question