I am just trying to draw a rectangle on mouse move event . I just saved the starting point in MouseDown Event and Ending Point is from Mouse Move . And called the paintImage Function .

```
Rectangle rec = new Rectangle (x1,y1,x2 - x1 , y2 - y1);
G.DrawRectangle(Pens.Blue,rec);

Starting Points = (x1,y1)
Ending Points = (x2,y2)

```

The Problem is When the value of x2 is less than x1 OR y2 is less than y1 the rectangle is not drawing ... Anyone help me on this