O
Open Wound
What method can I call to programmatically scroll a panel?
There is ScrollControlIntoView() but I don't have a control to scroll
into view. I just want the panel to scroll up by 100 pixels.
Setting AutoScrollPosition doesn't seem to work either. The values I
set are not honored, and are apparently modified by the framework.
By the way, what I am trying to implement is the behavior seen in
Notepad (and other Windows apps) where you hold the mouse button down
and drag the mouse below the window, and the contents keep scrolling
up while the mouse button is held down. I am using a timer to achieve
this. In the timer event handler, I want to programmatically scroll
the panel up.
There is ScrollControlIntoView() but I don't have a control to scroll
into view. I just want the panel to scroll up by 100 pixels.
Setting AutoScrollPosition doesn't seem to work either. The values I
set are not honored, and are apparently modified by the framework.
By the way, what I am trying to implement is the behavior seen in
Notepad (and other Windows apps) where you hold the mouse button down
and drag the mouse below the window, and the contents keep scrolling
up while the mouse button is held down. I am using a timer to achieve
this. In the timer event handler, I want to programmatically scroll
the panel up.