Custom field

S

Sue Mosher [MVP-Outlook]

Try either switching to another view or switching to another folder and then back again.
 
J

Jim

Thank you Sue for all of your help.
How can I get the UserProperty back off the ContactItem??
Also what books would you recommend for learning this little things with
C# and Outlook programming?

Thanks
 
S

Sue Mosher [MVP-Outlook]

yes.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

I'm not sure what you mean by "get ... back off." myItem.UserProperties("name of property") returns the property value.

There are no books on C# and Outlook programming, but there is a lot of sample code and some knowledgeable people at my site (see signature).
 
J

Jim

Hi Sue, I am having issues installing my outlook addin on client
machines. It seems to install but does not show up in outlook.
Do you have any ideas?
Thanks,
Rog
 
S

Sue Mosher [MVP-Outlook]

Did you check the registry? The disabled items list in Help | About Microsoft Outlook?
 
J

Jim

Hi Sue, you may know the answer to this. I start a new thread in the
outlook addin, but when I shutdown outlook the outlook.exe process is
still running. I assume that thread does not die. I do thread.Abort(),
but that does not do it. Do you have any insight?
Rog
 
S

Sue Mosher [MVP-Outlook]

I am thread ignorant. (really) My guess, though, is that you haven't cleaned up all the objects used in that thread.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

Jim

Thanks Sue,
System.Runtime.InteropServices.Marshal.ReleaseComObject(outlookcomobj);
is the answer...
Rog
 
J

Jim

Hi Sue, I have two more questions for you.
1) When I add the custom field in outlook through view.XML, I have to
restart outlook before I can see my fields in the view. Any ideas?
2) I see there is a private checkbox for contacts and meetings, how can
I access that programmtically to determine whether a contact is private
or not?
Thanks,
Rog
 
S

Sue Mosher [MVP-Outlook]

1) Instead of restarting, try switching to another view and back again or to another folder and back.

2) Use the Sensitivity property.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Application.ActiveExplorer.CurrentFolder

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
R

Roger R. Smith

Thanks Sue,
I tried to create an exe that I can run from my installation which will
create the view before the user even tries to open the add-in. It is
not an addin, but just an exe that uses Outlook.ApplicationClass. But
when the exe is done, one of two things happens, either Outlook.exe is
still running or I get mscorlib Int32 ReleaseComObject nullpointer
exception.
Any ideas?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top