GetScrollInfo(...) work, but SetScrollInfo(...) wont,...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?=

    #1

    GetScrollInfo(...) work, but SetScrollInfo(...) wont,...

    Hi,

    though i understand how to use the Get/SetScrollInfo(. ..) API,
    i could not manage to save and restore the scroll state/position
    of a ListView in .NET . I call GetSscrollInfo( ...) which in turn
    gives me the current scroll information of the ListView and then
    i call SetScrollInfo(. ..) and it does not set the position anyway.
    I starts at the begining of the ListView and focuses the first element
    as if i didnt call anything of the API,...

    I do this that way:

    ListView.BeginU pdate();
    GetScrollInfo(. ..)
    Listview.Items. Clear()
    //Build items again, same count!
    SetScrollInfo(. ..)
    ListView.EndUpd ate()


    It just wont work? What do i wrong here?


    Regards

    Kerem


    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Latest Project: http://www.codeplex.com/restarts
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."

Working...