Drawing with Graphics class in C#
问题 I would like to draw in C# with the mouse, like if the mouse were a pen. I am trying with Graphics class, using DrawLines method receiving an array of points as parameter. Do you think this is the better option, or do yo know if is there another easy way to do it? Thanks in advance Regards. 回答1: Look at this sample: http://www.codeproject.com/KB/graphics/drawtools.aspx Specifically, the Pencil tool does what you need. 回答2: You have to use a combination of the MouseMove, MouseDown, and MouseUp