This is why SharePoint drives me insane. Everything I have been able to find on the web says I *can* programmatically remove list items from a list, all I have to do is a declining loop. I have even copied verbatium several code examples found
in this forum and on the web and every last one of them gives me a "Collection was modified; enumeration operation may not execute." error in the Event log. This is a C# Windows Form Application we want to use to remove a common announcement from any
announcement list in our entire site (top down). We can *add* it to every announcement list without issue (seperate code). Can anyone point out to us the error in our code below?
public partial class RAForm : Form
private void removeAnnouncment_Click(object sender, EventArgs e)
const string a = "Application";
if (tlsURL.Text.ToString() == "http://" || tlsURL.Text.ToString() == &qu
View Complete Post