Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
reflex2dotnet
Yak Posting Veteran
99 Posts |
Posted - 2007-02-08 : 11:02:50
|
Hi EverybodySystem.InvalidOperationException: Collection was modified; enumeration operation may not execute.I got this error, on the following codeWhen i searched, i found that this is due to some hash table issue.I didnt understand that concept, and i am in confusion how to resolve this?it will be great if some one can help me in fixing this// i am trying to add multiple items from one listbox to another listboxFor Each li As ListItem In lstAllAccounts.ItemsIf li.Selected ThenlstAccountAccess.Items.Add(li)lstAllAccounts.Items.Remove(li)End IfNext li-----> error was pointing herethanks |
|
reflex2dotnet
Yak Posting Veteran
99 Posts |
Posted - 2007-02-08 : 12:05:30
|
i got it workedThanks |
|
|
|
|
|