If I had to take a stab at the problem, without seeing the rest of the relevant code, my guess is that you are seeing an
ArgumentOutOfRangeException
error. The rest of the error details would say something like:
Quote:
Additional information: InvalidArgument=Value of '0' is not valid for 'index'.
In WinForms, the
Listview.SelectedIndexChanged
event will fire twice when changing selection. Once to say that an item is not selected, then again to say that an item was selected. Unless you are looking for this, the above error will occur.
Without more information I/we can't help you any further.