Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

URGENT - Setting  a normal grahic held in a Image Control to the imURGENT - Setting  a normal grahic held in a Image Control to the im

Posted on 2006-06-05
4
Medium Priority
?
208 Views
Last Modified: 2010-04-30
URGENT - Setting  a normal grahic held in a Image Control to the image on the button,

Any examples from code would be greatly appreciated ...

Redards

Darrin
0
Comment
Question by:dwe0608
  • 3
4 Comments
 
LVL 8

Accepted Solution

by:
List244 earned 2000 total points
ID: 16833027
Setting pictures back and forth between image controls and command buttons is as simple as:

Image1.picture = command1.picture
AND
command1.picture = image1.picture

However, for a command button to hold a picture, it must be set to graphical.  This also must be
done at design-time.  Click on your button, and in the property page, find "style"  set it to graphical
and you will be able to add pictures and other colors to your button.
0
 
LVL 1

Author Comment

by:dwe0608
ID: 16833119
you dont have to use \
                  the Set commandcommand1.picture = image1.picture
0
 
LVL 8

Expert Comment

by:List244
ID: 16833150
No, you do not need to use set, that is what the = is for, it tells it to set the picture in commandcommand1 to the picture in image1.
0
 
LVL 8

Expert Comment

by:List244
ID: 16833242
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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

810 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