Thank you for your reply jany_.
Updating the code as
Updating the code as
foreach(string strSHPFile in strSHPFiles) //loop through each filename
{
IMapFeatureLayer targetLayer = appManager1.Map.Layers.Add(strDirPath + "\\" + strSHPFile) as IMapFeatureLayer;
}
appManager1.SerializationManager.SaveProject(ofdProject.FileName);
appManager1.SerializationManager.OpenProject(ofdProject.FileName);
}
Seems to work. It loads the shapefile, but it does not load any labels I created. Does FeatureLayer.Dataset.SaveAs also save the labels?