C# – how to draw lines and shapes on picture box on mouse move event in c#

cdrawinggraphics

i am trying to draw a rectangle when i press mouse left button and drag. i want to show the size of rectangle change according to move of mouse. how is it possible. i tried to paint on picture box but the rectangle draw when i release the mouse button. i want to show it during drag?

it just like we click on our windows desktop and and darg the mouse we see a rectangle growing with mouse move i have to do this any other option?

Related Topic