Why can't I draw to to the control's graphics?

  • Thread starter Thread starter Juan Romero
  • Start date Start date
J

Juan Romero

Hey guys,

I am trying to draw a vertical line in a class of mine that inherits from
the RichTextBox control, but for some reason the line won't be drawn.

Here is the code, fairly straight forward:

Dim g As Graphics = Me.CreateGraphics
g.DrawLine(Pens.Black, 100, 1, 100, Me.Height)
g = Nothing

Any ideas?
 
Back
Top