![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Picture in an Image Control
An alternative method is to add an image control to a custom form and use the Advanced Properties of the control to set the Picture property to your preferred picture. (You can also add a picture to the background of the form itself by right-clicking on the form background and choosing Advanced Properties.) The problem here is that the picture becomes attached to the form, not to the individual item. This is a good method for adding a picture that you want to see on every item, but not for adding a picture that you want to be specific to each individual item. If you want to use an image control on the form that loads a different picture for each item, you can use a little code to load the picture from a separate file when the form opens. Here's one way to set up the form and data: Create a form with a custom page named Picture and one image control on that page named imgPicture. Drag the Billing Information field from the Field Chooser to that page. (The Billing Information field is available on every Outlook item, and you can use it for whatever data you like.) Add the following code to the form: Function Item_Open() Set objInsp = Item.GetInspector Set objPage = objInsp.ModifiedFormPages("Picture") Set imgPicture = objPage.Controls("imgPicture") If Item.BillingInformation "" Then imgPicture.Picture = _ LoadPicture(Item.BillingInformation) End If End Function Publish the form. I don't understand the above....can someone give a step by step instruction how to create the image control? How to insert the code? where to insert the code? create a form? how? blank form? but i want to put it in Contact.... how to create the custom page? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Image placeholders in the body of the mail message instead of the actual image: Outlook 2003 | Spin[_2_] | Outlook - General Queries | 1 | December 19th 08 01:43 AM |
multi select control not in my control toolbox | GolfGal | Outlook - Using Forms | 4 | August 13th 07 09:26 PM |
Outlook View Control embedded in custom control | [email protected] | Outlook - General Queries | 1 | November 8th 06 11:41 AM |
Outlook View Control embedded in custom control | [email protected] | Outlook - Using Forms | 1 | November 8th 06 11:41 AM |
Binding a Control to an ADODC Control, Is it possible | Andrew Sampels | Outlook - Using Forms | 1 | August 8th 06 10:02 PM |