This code gives me a error.Quote:
Can't assign to read only property.
VB Code:
List1.Sorted = False
Printable View
This code gives me a error.Quote:
Can't assign to read only property.
VB Code:
List1.Sorted = False
Because list1.sorted isnt a property you can change
Set it before you run your program. You can also have a duplicate list of items that aren't sorted. When you want to show the sorted one, hide the other.
You can also sort the list before adding it to the listbox. If you are adding to you listbox from an SQL query, adding an ORDER BY clause will suit the purpose nicely.