Prevent ListBox scrolling to top when updated
Posted
by WDZ
on Stack Overflow
See other posts from Stack Overflow
or by WDZ
Published on 2010-05-22T18:04:49Z
Indexed on
2010/05/22
18:10 UTC
Read the original article
Hit count: 178
I'm trying to build a simple music player with a ListBox playlist. When adding audio files to the playlist, it first fills the ListBox with the filenames and then (on a separate thread) extracts the ID3 data and overwrites the filenames with the correct Artist - Title information (much like Winamp).
But while the ListBox is being updated, it's unscrollable, as it always jumps to the top on every item overwrite.
Any way to prevent this?
© Stack Overflow or respective owner