The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
I have an application where I want an autoscrolling listbox. I originally actually had a string indicator for this purpose, which was easier for autoscrolling to the bottom (just set Scroll.Position to +inf), but string controls do not respect the scroll wheel, and are diffult to selectively recolor (I want to color code by row).
The only way to programmatically affect the scroll position is to set the TopRow of a listbox. In this particular application, I have moveable splitters, so the size of the listbox is not constant. Plus, the elements are multiline-enabled, so I don't know how many rows would be visible even if I programmatically determined the vertical size of the listbox. It could be done, with a lot of math and wizardry, but it just doesn't seem like it should be that hard.
Can we get a ScrollPosition property, or a ScrollToEnd method for listboxes/multicolumn listboxes to provide this feature? Or has someone found a simpler way to accomplish this? [And no, I can't just reverse the incoming data so it scrolls up instead of down.]