This is baffling me, maybe somebody can shine the light of education on my ignorance. This is in a C# windows app. I am accessing the contents of a listbox from a thread.
The Count property of SelectedItems is not thread-safe, so you can't use it cross-thread.