locked
How to scroll between two linew in listview win32 pocket pc RRS feed

  • Question

  • Hello,

    I have istview window in report style.
    I would like that my scrollbar will jump two lines in each click.
    for example if I have 10 lines , the scrollbar should jump between lines: 0,2,4,6,8,.

    Thanks
    Sunday, June 21, 2009 2:50 PM

Answers

All replies

  • Hi,

    What value is your list view's View property set to?

    Are the scroll bars you mention part of the control or have you added these seperately?

    Thanks

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Monday, June 22, 2009 6:44 AM
  • The property are strings.
    the scrollbar is not part of the listview.
    my listview contains 10 lines.
    When the listview appears for the first time i select the first two lines (0+1) and they are highlight.
    now i want to scroll down - i press the pagedown button and want the next two line to be highlight -
    but it focus jump line after line iin each press.
    I want that the page down will cause the focus to jump two lines in each press.

    tahnks
    Monday, June 22, 2009 7:13 AM
  • Hi,

    You may want to use the same code that selects the first two lines (0+1) and hook into the Value Changed event of the scroll bar.

    Hope this helps.

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Monday, June 22, 2009 7:54 AM