PaintSizeMode example for Visual Basic

Note: Also works with Access 95 and 97.

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

Lead1.AutoScroll = True
Lead1.AutoSetRects = True
Lead1.PaintSizeMode = PAINTSIZEMODE_FITSIDES
Lead1.ForceRepaint