J
John Veldthuis
My code works perfectly 100% when adding items to my ArrayList and updating the listbox.
Works perfectly when deleting an item in the ArrayList when it is not the last entry but if it is
the last entry and you select another index it goes boom!!!.
Funny thing is the SelectedIndex Changed routine fires off perfectly and then crash after the return
from this code.
Now looking around the news groups it appears to be a bug in the .net implementation.
The only way I have found to get around it is to select the previous item before removing the last
item. I do this by setting the SelectedIndex to what it is -1. Now it works perfectly until there is
nothing left in the list to remove and I will assume it will go boom again then.
Does anyone know of another work around for this bug?
Also is it fixed in VS 2005?
Cheers
Works perfectly when deleting an item in the ArrayList when it is not the last entry but if it is
the last entry and you select another index it goes boom!!!.
Funny thing is the SelectedIndex Changed routine fires off perfectly and then crash after the return
from this code.
Now looking around the news groups it appears to be a bug in the .net implementation.
The only way I have found to get around it is to select the previous item before removing the last
item. I do this by setting the SelectedIndex to what it is -1. Now it works perfectly until there is
nothing left in the list to remove and I will assume it will go boom again then.
Does anyone know of another work around for this bug?
Also is it fixed in VS 2005?
Cheers