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

From: Ken Tucker [MVP] (vb2ae_at_bellsouth.net)
Date: 05/07/04


Date: Fri, 7 May 2004 15:12:41 -0400

Hi,

http://msdn.microsoft.com/msdnmag/issues/04/05/AdvancedBasics/default.aspx

Ken
---------------
"Juan Romero" <juan.romero@bowne.com> wrote in message
news:%23dVt0zFNEHA.3312@tk2msftngp13.phx.gbl...
> 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?
>
>



Relevant Pages

  • Re: Gun Laws Kill - "Thirty-two fine young men and women are dead and that is a huge tragedy
    ... My measured average reaction time is .185 seconds, far too slow to place high in the standings (world champion's reaction, and draw and shoot time of slightly over 24/100th of a second). ... Hey, I did everything but draw you a fucking map to my home. ... If not true, sonny, that was YOUR lie. ...
    (misc.transport.trucking)
  • Re: Shitty day ...
    ... Hey, I've been bought 8 times. ... The only conclusion I can draw from ... I did say legendary, and use a smiley. ...
    (uk.rec.motorcycles)
  • Re: Enough is enough -- shut up or put up
    ... got my video camera and captured a few of Chris' draw-shots... ... Hey, you must be Debra Li! ... What draw, all I saw was some ding dong amateur flooging away with no ...
    (rec.sport.billiard)
  • Re: What a game!
    ... hey, power is the one offensive skill he does supposedly have. ... wait for him to draw a 3-run walk, now, you'll be waiting a long time. ...
    (alt.sports.baseball.bos-redsox)
  • Re: Shitty day ...
    ... Hey, I've been bought 8 times. ... The only conclusion I can draw from ... BMW R1150GS ...
    (uk.rec.motorcycles)