Drawing in VB2005
-
Create a drawing program with the following features: a. The user has a bounded drawing area (i.e., the user is not drawing directly on the form). b. The user has three "tools" with which to draw: a line drawing tool, a box drawing tool, and a freehand drawer. When the line tool is selected, the user clicks on the drawing area and, holding the button down, moves the mouse. When the button is released, a line is drawn between the point where the button was pressed and the point where it was released. (For all of the drawing tools, you will want to write code for the MouseDown and MouseUp events of your drawing area.) The box drawing tool works in the same manner as the line drawer, except the two points are considered the corners of a box to be drawn. When the freehand tool is selected, clicking in the drawing area places a point where the mouse pointer is. As long as the mouse button is held down, the user can move the mouse and lines will be drawn from point to point. The effect will be that the user is drawing directly with the mouse pointer (like the “Pencil” in the Windows Paint program). I dont know really how to start, how to include line, rentangle and freedraw control on the form. Thanks in advance ZAfar