BulletSponge
New member
- Joined
- Jun 28, 2005
- Messages
- 3
- Programming Experience
- 3-5
I've got a custom listview control that is filtered based on several methods. The filtering works great, but the UP, DOWN, Page Up, and Page Down keys function differently depending on whether or not I used the mouse to click on the listview control or one of it's items.
When I set the focus to the Listview through code like MyListView.Focus (includes selecting the correct item and selecting it), pressing the Up or Down keys scrolls the ENTIRE listview.
When I CLICK on the listview control with the mouse, and I press the Up or Down keys, scrolls Item by Item, selecting the next or previous item as I go.
The desired navigation is to use Item by Item selection, NOT use the listview scrollbar, so how do I set a control to navigate this way through code?
When I set the focus to the Listview through code like MyListView.Focus (includes selecting the correct item and selecting it), pressing the Up or Down keys scrolls the ENTIRE listview.
When I CLICK on the listview control with the mouse, and I press the Up or Down keys, scrolls Item by Item, selecting the next or previous item as I go.
The desired navigation is to use Item by Item selection, NOT use the listview scrollbar, so how do I set a control to navigate this way through code?