graphics drawline - graph - inner lines not showing up?

  • Thread starter Thread starter Rich
  • Start date Start date
R

Rich

Hello,

I am trying to draw a graph on a form. I can draw the box
using drawline, and bars inside the box using
drawrectangle, but when I try to draw a line inside the
box the inner lines are not showing up. Do I need to use
a property or something?

Here is the code for my lines

Graphics g = this.CreateGraphics();
Pen pen2 = new Pen(Color.Blue);

g.DrawLine(pen2, 30, 50, 300, 50); //horizontal top
g.DrawLine(pen2, 30, 50, 30, 190); //vertical left
g.DrawLine(pen2, 30, 190, 300, 190); //horizontal bottom
g.DrawLine(pen2, 300, 50, 300, 190); //vert right
g.DrawLine(pen2, 70, 50, 70, 190); //vertical inner

The vertical middle line is not showing up. Any
suggestions appreciated what I could do to make the inner
line show up.

Thanks
 
Back
Top