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
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