Jump to content
Xtreme .Net Talk

pcbbc

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by pcbbc

  1. Searched all over for the solution to this, and found nothing. But some experimentation shows there is an easy answer! Place the following override on the control with AutoScroll set true (the parent control): protected override Point ScrollToControl(Control activeControl) { return this.AutoScrollPosition; } This works because ScrollToScroll returns the new scroll position for the parent that is required to move the required location on the child control (as determined by activeControll.AutoScrollOffset) into view. If you simply return the current AutoScrollPosition in response to all requests to scroll a control into view, then the parent control does not scroll at all from its current position. Somewhat late reply, but hopefully this helps others searching for a solution. :cool:
×
×
  • Create New...