Just override the onpaint event of your form and write down :
protected override void OnPaint(PaintEventArgs e)
{
Graphics g = e.Graphics;
g.DrawLine(new Pen(Color.Black), x1, y1, x2, y2);
//x1, y1 is start point and x2, y2 is end point of the line
base.OnPaint (e);
}
cheers ;)
- Angelina
"Sonic" <So***@discussions.microsoft.comwrote in message
news:94**********************************@microsof t.com...
>I want draw a line for saperate form, how do i do?
thx