Re: [2008] Add item to list?
I take it this all will be done on the server side?
If you would add each users username to a List(Of String) as they sign in, you will automatically have them placed in the order they sign in.
If you're looking to use the Settings, create a setting of type System.Collections.Specialized.StringCollection and use it like any other collection.
Re: [2008] Add item to list?
here is what atheist is saying. it shows both.
Code:
Dim Names As New List(Of String) 'this could be System.Collections.Specialized.StringCollection
Names.Add("Tom")
Names.Add("Martin")
Names.Add("Mary")
Names.Add("James")
Names.Add("John")
Names.Add("Lisa")
Names.Add("Natalie")
Names.Add("Emily")
Names.Add("Nathan")
My.Settings.storeNames = New System.Collections.Specialized.StringCollection
My.Settings.storeNames.Add("Foo")
My.Settings.storeNames.AddRange(Names.ToArray)
Debug.WriteLine(My.Settings.storeNames.Item(0))
Debug.WriteLine(My.Settings.storeNames.Item(1))