How to get/set scrollbar positions in ListView?
From: Frank Rizzo (none_at_none.com)
Date: 05/21/04
- Next message: Brian Henry: "Whats new dialog"
- Previous message: CJ Taylor: "Re: pingable IP to monitor internet connection stability"
- Next in thread: Ken Tucker [MVP]: "Re: How to get/set scrollbar positions in ListView?"
- Reply: Ken Tucker [MVP]: "Re: How to get/set scrollbar positions in ListView?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 21 May 2004 11:35:49 -0700
I reload the items in the listview on a regular schedule (i.e. clear the
listview, then load it up with fresh values).
I want add a convinience to the user whereby my application remembers
the position of the scrollbars after reloading the data. But I can’t
figure out how to retrieve the scrollbar position (both horizontal and
vertical). Neither can I figure out how to restore the state of the
scrollbars. I could theoretically figure out the first visible item
via the .TopItem property and run .EnsureVisible on it, however, I’d
still want to set the Horizontal scrollbar and I don’t know how to do this.
Any idea on how to do this?
Thanks,
Frank
- Next message: Brian Henry: "Whats new dialog"
- Previous message: CJ Taylor: "Re: pingable IP to monitor internet connection stability"
- Next in thread: Ken Tucker [MVP]: "Re: How to get/set scrollbar positions in ListView?"
- Reply: Ken Tucker [MVP]: "Re: How to get/set scrollbar positions in ListView?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|