Original Post
Hi, I've recently made a paint program. It draws a rectangle whenever a mouse button is pressed on the pictureBox. It,however, doesnot draw if you keep the mouse button pressed while dragging the mouse around. My mouse event is something like this: switch (e.Button) { case MouseButtons.Left: { //Code } } So my question here is that how can I keep drawing the rectangles while the mouse, changes it's X and Y co-ordinates.