Hello. I need to help becuase I'm really desperate :( :) ..... I'm trying to program the program just same like the drawing software in the window 7, but not completely same xD xD. Unfortunately I have a problem with drawlines....I can't do that. I want to draw line by mouse by e.X and e.Y. I know I should list<Point> but I don't know how to do that. I'm sending some code what I devised.
Somebody to helped me that I should use drawlines and don't use Fillellipse. :( Please, somebody to help me. I'll be very glad.
private void panel1_MouseMove(object sender, MouseEventArgs e)
{
if (action2)
{
stetec = new SolidBrush(lbl_color.BackColor);
Graphics kp = panel1.CreateGraphics();
kp.FillEllipse(stetec, e.X, e.Y, 14, 14);
kp.Dispose();
}
}
private void panel1_MouseUp(object sender, MouseEventArgs e)
{
action2 = false;
}
private void panel1_MouseDown(object sender, MouseEventArgs e)
{
action2 = true;
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}