A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Contacts
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

image control



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 28th 09, 11:00 AM posted to microsoft.public.outlook.contacts
asciiarts
external usenet poster
 
Posts: 1
Default image control

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 02:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.