item is of type ListViewItem.
The item is taken from the selectedItems, and the list view does remove
it but it throws the exception.
> What is the type of "item"? Is it an integer?
>
[quoted text clipped - 27 lines]
> > Thanx,
> > Yael.
yevron2@gmail.com - 05 Jul 2006 12:35 GMT
I happens when i do it from a pop up menu that i manually poped at the
lstServers_MouseDown.
Thanx for all your help!
> item is of type ListViewItem.
>
[quoted text clipped - 32 lines]
> > > Thanx,
> > > Yael.
rhaazy - 05 Jul 2006 21:15 GMT
> > > A first chance exception of type 'System.ArgumentOutOfRangeException'
> > > occurred in system.windows.forms.dll
> The item is taken from the selectedItems, and the list view does remove
> it but it throws the exception.
It sounds like you have some kind of recurssive behavior going on that
is causing it to try and remove it the first time but fails and when it
tries again it does it, or even vice versa...