HScrollProperties.Value of VerticalScrollBar does not obey RRS feed

  • Question

  • Hello,

    I have simple a Panel within a Form. The panel has set AutoScroll to true. I need to remember scroll position between switching some objects. During deselection, I saved Value to user variable:
    m_ScrollPos = ContainerPanel->VerticalScroll->Value; 

    which works perfectly.

    Then, when I select the same object again, restore the scroll position similarly:

    ContainerPanel->VerticalScroll->Value = m_ScrollPos;  

    But it does not work! The value Value is still 0. It is managed C++.

    Thank you for help.

    Jiri Formanek
    Tuesday, August 19, 2008 8:38 AM