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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Juan Romero (juan.romero_at_bowne.com)
Date: 05/07/04


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?



Relevant Pages

  • Re: Jamming draws in limit holdem
    ... "jamming a draw". ... pot a major factor in how you play the hand. ... It's not just mindless aggression for no reason, ...
    (rec.gambling.poker)
  • Re: The wicked untruths of our church leaders
    ... to declare that anyone is a human being. ... What imho would be especially unscientific would be to draw lines without ... I appear to be better acquainted with reason than you on this. ... care whether you think I'm humble or not nor do I care for your suggestion. ...
    (uk.religion.christian)
  • Re: America Is A Failed, Evil Experiment
    ... >> last time is because the Dems and Repubs get together and draw the lines ... No reason for a moderate anything to even bother trying ... It was part of Schwarzenegger's power ... It AIN'T the Democrats, its the Democrats AND Republican incumbents. ...
    (rec.music.gdead)
  • Re: Does anyone here know anything about tennis?
    ... Dont you know the very ... reason that players try to get ranked is to get easier draws? ... the draw is unbalanced is just as stupid. ...
    (rec.sport.tennis)
  • Re: Whats the swing equivalent for Canvas?
    ... ensure all materials at my site/s are ... For that reason, ... declare a Graphics object as a class attribute. ... it will only draw the complex bit once. ...
    (comp.lang.java.gui)