Use the line method for the container object instead. You can draw lines at
runtime in usercontrols, pictureboxes, and forms. Just add the code in the
paint event for the object. Look in help for the syntax. You can even create
filled boxes.
This will not however, draw over controls. You can draw over controls but it
is a pain.
Example:
Private Sub UserControl_Paint()
'Draws diagonal line on usercontrol
UserControl.Line (0, 0)-(ScaleWidth, scaleheight)
End Sub
Good Luck,
--
Sergio DeAlbuquerque
President
Matrix Technical Services Inc.
172 N.Bicycle Path
Selden, NY 11784
Ph: 631-736-9001
Fax: 631-696-8538
http://www.matrixengg.com
"CAD services, machine design, VB and VBA application development"