BorderStyle example for Visual Basic

Note: Also works with Access 95 and 97.

This example toggles the border style and repaints the image.

If Lead1.BorderStyle = 1 Then
   Lead1.BorderStyle = 0
Else
   Lead1.BorderStyle = 1
End If
Lead1.ForceRepaint