If My.Settings.Sup1 Is Nothing Then
My.Settings.Sup1 = New Collections.ArrayList
My.Settings.Sup1.Add(0)' array index can't be negative or less than 0
My.Settings.Sup1.Add(0)
My.Settings.Sup1.Add(0)
My.Settings.Sup1.Add(0)
End If
why would i even get this exception in the commented line, is there anything wrong with the above code
i tried insert and assigning a value to the current index and still i am getting the exception
I added an User Setting on the Project Properties → Settings Tab of Type
System.Collections.ArrayListand it works as expected. Not sure what your problem is your code looks fine, I would double check yourTypeand make sure it is correct.