How do I capture "panel" scroll event?

I want to do some drawing bigger than the PocketPC Screen.

I need to be able to capture the panel scroll event to draw the picture correctly base on the scroll bar position.

Thanks in advance.



Answer this question

How do I capture "panel" scroll event?

  • Binary

    .NETCF doesn't expose the scroll event on scrollable controls. Since you are planning on painting your panel's client area, just hook the OnPaint event. When deciding what part of your picture to draw, look at the AutoScrollPosition property to see what offset to use.

  • How do I capture "panel" scroll event?