Is there a way to check if a combo box or listboxitem is showing on the screen?
If there are many items in the list, is there a way (programmatically) to check if the item is visible on screen.
For example, a list contains 100 items, but only the first 24 are shown on the screen, is there a way to check if a specific one is displayed (eg list [75]), or do I have to scroll to see it?
0
a source to share
2 answers
Check out Calculating the number of visible items in a ListBox and find my post below.
I've seen a lot of tricky answers that are wrong.
Short answer: (listBox1.Height / listBox1.ItemHeight)
0
a source to share