Frnds any one tell me how to drawline in c# and erase bit by bit instead of using "clear()" method
View Complete Post
The following lines in a form throws exception. I dont understand the reason for this exception.
protected override void OnPaint(PaintEventArgs e)
using (Pen pp = new Pen(Color.FromArgb(225, 237, 139, 76)))
e.Graphics.DrawLine( pp,205,1600, 550, -1073740352);
// However the following line does not producess the error
// e.Graphics.DrawLine( pp,205, 1599, 550, -1073740352);
Anyone there please explain the reason for this exception.
Any help would be appreciated.