Hi All,

1) question:

I'm trying to draw some lines, rectangles ore ellipses with the left mousebutton, but I can't make it to work with the mousedown event.

This is the code I use for the Form_paint event and it's working fine.

VB Code:
  1. Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
  2.         Dim ptfs() As PointF = { _
  3.                            New PointF(150, 25), _
  4.                            New PointF(185, 10), _
  5.                            New PointF(200, 50), _
  6.                            New PointF(160, 30) _
  7.                        }
  8.         e.Graphics.DrawBezier(Pens.Black, _
  9.              ptfs(0), ptfs(1), ptfs(2), ptfs(3))
  10.     End Sub

How can I use this code to draw a line, rectangle or something drawing with
the mouse.

2) question

After I'm drawing something I want to resize the drawing, like for example Autocad does. For example to change te rectangles size after drawing.

Thanks in advance,

sparrow1