G
Guest
I have a very large ArrayList of objects. I'd like the user to be able to
scroll through a text box (or other control) to view the description of each
object. The object class has an overriden ToString() method, which produces
the desired text for each object.
Because the list is so large (tens of thousands of objects), I don't want to
fill the text box with a description of every object. Rather, I'd like to
dynamically change the contents of the TextBox as the user scrolls
vertically. But I don't see any events from the scroll bar that I can use to
implement this.
Could someone suggest a good way to to this?
Perhaps a different control type would be appropriate?
I'd prefer something more like a spread-sheet, as the text is columnar in
nature.
Thanks in advance for your help
scroll through a text box (or other control) to view the description of each
object. The object class has an overriden ToString() method, which produces
the desired text for each object.
Because the list is so large (tens of thousands of objects), I don't want to
fill the text box with a description of every object. Rather, I'd like to
dynamically change the contents of the TextBox as the user scrolls
vertically. But I don't see any events from the scroll bar that I can use to
implement this.
Could someone suggest a good way to to this?
Perhaps a different control type would be appropriate?
I'd prefer something more like a spread-sheet, as the text is columnar in
nature.
Thanks in advance for your help