While playing with this recursive directory search in the other thread I came upon something I never noticed in about ten years VB6 experience, and wanted to ask if someone knows it too, and can probably mention a remedy:
Put a ListBox on a Form and in Form_Load() fil it with 32000 items.
After that Debug.Print List1.ListCount. Looks good.
Now fill it with 40000 items and you get printed -25536 which, as is obvious, is the representation of 40000 as a signed 16bit integer.
More weird is the fact that the ListBox can easily accept more than 200000 items, but the .ListCount property always is within the signed 16 bit range.
This seems to make the .ListCount property worthless as soon you expect more than 32767 entries in a ListBox.
Anyone knows this phenomenon, or even better has a patch for it?

