help! how to add custom property to poom contact / appointment / task

N

None

hi there,

i'm using vs2005 c# with .net cf 2.0 and developing an app for windows
mobile. i am at a point that i have to add a custom property to the
contacts in a contact collection for storing some extra information
about the contacts. however the app always returns "null" for whatever
i've updated to the new field. i've successfully added a field
"Checked" to a contact and the Add method returned true. then i tried
to update the value of Checked with "Yes" but it had no effect.

i want to update Checked so that i can make use of it. can somebody
help?

for (int iIdx = 0; iIdx < ccContactColn.Count; iIdx++)
{
ccContactColn[iIdx].Properties.Add("Checked");
ccContactColn[iIdx].Properties["Checked"] = "Yes"; //
ccContactColn[iIdx].Properties["Checked"] keeps returning null
}

remarks:
ccContactColn.IsReadOnly returns false
ccContactColn.IsFixedSize returns false


thanks
batterhead
 
P

Peter Foot [MVP]

You have to call ccContactColn.Update() to save changes you make to the
Contact.

Peter
 

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