New field in Outlook address book

  • Thread starter Thread starter Abhay Misra
  • Start date Start date
A

Abhay Misra

Hi,

I have an application in c++. I need for it to put a extra field in the
outlook address book. I want to know if that is possible. If yes then can
you please give me some links to get started with? Thanks,

Regards,

Abhay
 
You cannot do that. You can add a user property to a contact item and if
that property is defined in the folder it can be displayed in a folder view.
But you can't modify the address book display.
 
Hi,

Is the property that we can add, be updated dynamically. For example if I
were to add a property saying "status" which can be busy or free. Can this
be updated dynamically or would this be loaded when Outlook stats up. I am
new to Outlook, if you can give me some sample code to get started I would
be grateful.

Regards,

Abhay
 
How you add a user defined property depends on where and how you want it to
show up.

If you add it to a folder then you can use it in a folder view. To do that
you would right-click on the column headers in a table type folder view and
select Field Chooser. In that dialog select User defined fields in the
folder in the drop-down and then drag the property name from the Field
Chooser to the position in the grid where you want it displayed.

If you also want the property to display in the form you have to add a
control such as a textbox to the form and bind it to your user property. To
find out more about that see the forms information at www.outlookcode.com.

Once you set up your property you can then set values for it in each item.
The values are loaded along with the items as they are displayed in Outlook
or when the item is opened. They can be changed as needed.

In the simplest terms to add a property would look something like this:
Dim oProp As Outlook.UserProperty
Set oProp = MyItem.UserProperties.Add("Status", olText)
oProp = "Busy"
MyItem.Save

From then on you can access that property the same way and read or write to
it. Again, review all the information on custom forms and properties at
www.outlookcode.com for more information.

Also, there is a forms programming newsgroup,
microsoft.public.outlook.program_forms that is a more appropriate forum for
forms questions.
 
Back
Top