|
|
|
date: Wed, 30 Jul 2008 04:59:27 -0500,
group: microsoft.public.office.developer.outlook.forms
back
Re: contact display in same contact window
Hello Ken,
Thanks for the reply.
I did exactly what you said.
I displayed a contact (e.g. Henry) in a contact window
now I got the launched (Henry) contact window through Inspector. But, don't know how to set the next record(Edwin) to the the same contact window which was launched earlier( i.e while displaying Henry)
you want me to set each field(i.e Full name,Company name,Address) of the contact(Edwin) in the contact window.
Can't I use the contact id(of Edwin) to set the entire fields in the contact window.
Thanks,
Rajeen R
----
kenslovak wrote on Tue, 29 July 2008 08:26
> The contact window is an Inspector. Every Inspector has a CurrentItem
> property. If these are actual Outlook contacts get Henry as an Outlook
> contact item and set CurrentItem of that Inspector to Henry's contact item.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Kidd" wrote in message
> news:ewBKbCU8IHA.4532@TK2MSFTNGP05.phx.gbl...
> >I have a list of contacts in an windows application
> > (e.g)
> > Henry
> > Edwin
> > William
> >
> > when I select a contact(say henry) it has to be displayed in a contact
> > window of Outlook, now this part of implementation I have done.
> >
> > Requirement:
> > When I select another contact (Edwin), the contact details has to be
> > displayed in the same contact window which has been launched earlier(i.e
> > Henry).
> >
> > any possibilities?
> >
> > Thanks,
> > Rajeen R
date: Wed, 30 Jul 2008 04:59:27 -0500
author: Kidd
Re: contact display in same contact window
If the contact is the active window then it's the ActiveInspector. Assuming
that you do exactly what I said, it's really simple.
Say Edwin's contact is oContact2:
ActiveInspector().CurrentItem = oContact2;
That's it, that's all you have to do.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Kidd" wrote in message
news:ebfD%23si8IHA.4608@TK2MSFTNGP06.phx.gbl...
> Hello Ken,
>
> Thanks for the reply.
> I did exactly what you said.
>
> I displayed a contact (e.g. Henry) in a contact window
>
> now I got the launched (Henry) contact window through Inspector. But,
> don't know how to set the next record(Edwin) to the the same contact
> window which was launched earlier( i.e while displaying Henry)
>
> you want me to set each field(i.e Full name,Company name,Address) of the
> contact(Edwin) in the contact window.
> Can't I use the contact id(of Edwin) to set the entire fields in the
> contact window.
>
> Thanks,
> Rajeen R
> ----
date: Wed, 30 Jul 2008 08:49:33 -0400
author: Ken Slovak - [MVP - Outlook]
|
|