I'm trying to use the below but it's spitting out an error and won't work.
The error I'm receiving is:
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
Additional information: List that this enumerator is bound to has been modified. An enumerator can only be used if the list does not change.
foreach (string i in listbox1.Items)
Any help would be greatly appreciated.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?