Is there a way to serialzie a listbox and its items so it is faster to load all its items(it has like 175 000)?
Or is there any other good way round? I have all items currently in a text file
Printable View
Is there a way to serialzie a listbox and its items so it is faster to load all its items(it has like 175 000)?
Or is there any other good way round? I have all items currently in a text file
175,000 items? this is acually a big ammounf of data to be human usable one control, maybe you have to split the data into a size limited groups, and load each one only when it necessary.
To serialize a listbox, I'm not sure the framework provides a way to serialize built in objects, but I don't discount it either. If you want to serialize the data, try reading it in to a collection and serializing the class that contains the collection.
Just a thought.
Did you try databases?
I didn't mention in my last post that 175,000 is just a perfect example where the databases jump into the scene, text files aren't so efficient for holding sucha huge ammount of data.