BorderStyle example for Visual Basic

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