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
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 ...


Question by:dwe0608
    LVL 8

    Accepted Solution

    Setting pictures back and forth between image controls and command buttons is as simple as:

    Image1.picture = command1.picture
    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.
    LVL 1

    Author Comment

    you dont have to use \
                      the Set commandcommand1.picture = image1.picture
    LVL 8

    Expert Comment

    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.
    LVL 8

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    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…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now