PaintSizeMode Example for Access 2.0

This example shows how to set the PaintSizeMode property so that the control uses only a vertical scroll bar.

Me![LEAD1].Object.AutoScroll = True
Me![LEAD1].Object.AutoSetRects = True
Me![LEAD1].Object.PaintSizeMode = PAINTSIZEMODE_FITSIDES
Me![LEAD1].Object.ForceRepaint