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:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim ptfs() As PointF = { _ New PointF(150, 25), _ New PointF(185, 10), _ New PointF(200, 50), _ New PointF(160, 30) _ } e.Graphics.DrawBezier(Pens.Black, _ ptfs(0), ptfs(1), ptfs(2), ptfs(3)) 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





Reply With Quote