Place the following code in the paint event of the form. Ensure that you have a form-wide Graphics object declared, named grph. This is not the most efficient way of doing this, but it gets you started.
VB Code:
grph = Me.CreateGraphics grph.Clear(Me.BackColor) Dim pn As New Pen(Color.Black) grph.DrawLine(pn, 0, 0, Me.ClientSize.Width, Me.ClientSize.Height) grph.DrawLine(pn, 0, Me.ClientSize.Height, Me.ClientSize.Width, 0) grph.Dispose()




Reply With Quote