Hey ya'll
I'm trying to mess around with the ListView control, and first I'm overriding the OnPaint method like so:
But nothing seems to change when I use my version of the control on my form? What gives? Shouldn't I see a red circle and a green line in my control?Code:Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim g As Graphics = e.Graphics Dim pn As Pen = New Pen(Color.Green, 10) g.DrawLine(pn, 100, 10, 30, 10) g.DrawEllipse(New Pen(Color.Red, 20), 20, 40, 20, 20) End Sub
Thanks!
-Ben




Reply With Quote