I have a form and want to draw a diagnol line accross it. This is how I'm drawing the line.
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
g.DrawLine(Pens.Red, ClientRectangle.X, ClientRectangle.Y, ClientRectangle.X + ClientRectangle.Width, ClientRectangle.Y + ClientRectangle.Height)
I also have a few controls sited on the form. The line draws on the forms surface only and is hidden behind each of the controls. How can I draw lines (or graphic object in general) that draws at the highest z order so that they appear to be on top of everything. Any easy way to do this?