Scrolling manually in a Panel-derived class

A

Andreas Brekken

How can I scroll manually in a Panel-derived class?

ScrollControlIntoView is not what I'm looking for, as all of the
painting is done by myself.
 
C

Christoph Nahr

How can I scroll manually in a Panel-derived class?

ScrollControlIntoView is not what I'm looking for, as all of the
painting is done by myself.

Enalbe AutoScroll (forgot the property name), set AutoScrollMinSize to
the desired size of the virtual screen, then set AutoScrollPosition to
the desired position. That's it.
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (Andreas Brekken) scripsit:
How can I scroll manually in a Panel-derived class?

Set its 'AutoScrollPosition' property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top