Basically I have created a Class with a method that is called everytime there is a click on my form(it is supposed to draw a single line where I clicked) it goes as follows:
public void Dessiner(Graphics Fg)
{
Point p = Form1.MousePosition;
Fg.DrawLine(MyPen,p.X,p.Y,p.X+2,p.Y+2);
}
The problem is when I call this method within my Forms' mousedown event it places the line at the wrong spot everytime.
Notes: the method can only take the graphics Fg, and the drawing of the line MUST be done within the method of the class.
What am I doing wrong?