Advertisement

Listbox items are not showing!

Started by May 22, 2016 05:31 PM
1 comment, last by myvraccount 8 years, 7 months ago

This may be really stupid, but I'm putting items in a list box and some of them are showing and some aren't, even when all the items are just strings!

I noticed that what's happening is that when I add new items unconditionally, they display, but when I add them inside a for loop, they don't, EVEN THOUGH when I debug, it's going into the loop, and adding the items, and they then appear in the list, which I can even print in a message box - they just don't show up in the list box!

Also, if I tell it to clear the list box items, it doesn't do it if it's inside the for loop; it executes the line but it doesn't affect the list box visually.

What could possibly be wrong?????

P.S.: I also tried using Show() and Refresh() and they do no good.

Can you post the code?
Advertisement

No, I can't, sorry. But it's a moot point, because I just figured out the problem. It was some reference I thought had been destroyed but wasn't.

This topic is closed to new replies.

Advertisement