I'm writing a code to view people from the AD but I only get to see one but on appending I see all off them please can you help
foreach (SearchResult r in searchResultp)
{
DirectoryEntry de = r.GetDirectoryEntry();
xnMyForm.SelectSingleNode("/my:myFields/my:UserName", ns).SetValue(de.Properties["displayName"][0].ToString());
}