Why can't I draw to to the control's graphics?
From: Juan Romero (juan.romero_at_bowne.com)
Date: 05/07/04
- Next message: William Ryan eMVP: "Re: Adding bitmaps to project"
- Previous message: Ken Tucker [MVP]: "Re: XSD"
- Next in thread: Ken Tucker [MVP]: "Re: Why can't I draw to to the control's graphics?"
- Reply: Ken Tucker [MVP]: "Re: Why can't I draw to to the control's graphics?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 13:59:40 -0400
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?
- Next message: William Ryan eMVP: "Re: Adding bitmaps to project"
- Previous message: Ken Tucker [MVP]: "Re: XSD"
- Next in thread: Ken Tucker [MVP]: "Re: Why can't I draw to to the control's graphics?"
- Reply: Ken Tucker [MVP]: "Re: Why can't I draw to to the control's graphics?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|