The line contol is gone but there is code that can be place in you paint event of the form. It will not work from the form load event. Here is some sample code to draw a Thick red line.
Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Red)
Dim formGraphics As System.Drawing.Graphics
formGraphics = Me.CreateGraphics()
myPen.Width = 5
formGraphics.DrawLine(myPen, 0, 20, 300, 20)
myPen.Dispose()
formGraphics.Dispose()
As for the index property, I believe it is gone. You can place items in a group box but I am not sure of the code to determine the selected control in the group box1.
David
|