Insert a scrolling region
A scrolling region control contains other controls and can display vertical and horizontal scroll bars. Scrolling regions are useful when you want to include a fixed region on a form that will scroll to accommodate large amounts of data. For example, if you use a repeating table to display numerous records from a database, you can insert the repeating table inside of a scrolling region to display just a few records at a time. Because scrolling regions are used exclusively for layout purposes, they are not bound to fields or groups in the data source.
- In design mode, place the insertion point where you want to insert the scrolling region.
- If the Controls task pane is not visible, click More Controls on the Insert menu.
- Under Insert controls, click Scrolling Region.
- To add controls to the scrolling region, drag the control that you want from the Controls task pane into the scrolling region.
- To test the scrolling region, click Preview Form on the Standard toolbar.
By default, a scrolling region displays a vertical scroll bar on its right side. If there's no need to scroll, this scroll bar appears dimmed, but it is still visible to the user. To make the scroll bar appear only when needed, or to enable horizontal scroll bars in addition to or instead of vertical scroll bars, you can change the properties for the scrolling region.
- In design mode, right-click the scrolling region control, and then click Scrolling Region Properties on the shortcut menu.
- On the Display tab, do one of the following:
- To disable the vertical scroll bars completely, click Never in the Show vertical scroll bars list.
- To disable the horizontal scroll bars completely, click Never in the Show horizontal scroll bars list.
- To display the vertical scroll bars only when needed, click When necessary in the Show vertical scroll bars list.
- To display the horizontal scroll bars only when needed, click When necessary in the Show horizontal scroll bars list.
- To display the vertical scroll bars by default, even if they are not needed, click Always in the Show vertical scroll bars list.
- To display the horizontal scroll bars by default, even if they are not needed, click Always in the Show horizontal scroll bars list.
Note The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more