How to draw line on Panel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello Friends,
I am putting the code to draw the line in onPaint
event of Panel control but it's not working. Can anybody help me how to draw
line on Panels in .Net compact framework 1.0?

Here is my code snippest to draw line -

void panel1_Paint(object sender, PaintEventArgs e)
{
Pen p = new Pen(Color.Black);
e.Graphics.DrawLine(p, 0, 30, 240, 30);
p.Dispose();
}

Thanks in advance

Santosh
 
Thanks. I got the fix of issue by myself. I am using now tabpage onpaint and
it's working.
 
Back
Top