Results 1 to 6 of 6

Thread: drawing onto forms

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    no one even looked at this is games and graphics:
    in basic it is something like Plot Points, is there something like this to draw directly to the form?

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    in a way, there is by going to the component window, going to the insertable objects tab, and picks he ms paint control, or a drawing control, then you draw in the control, and press play and there it is, what you just drawn
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    no i mean like in runtime. When i hold the mouse down, it will draw.........kinda like that....

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    oh, I dont know that

  5. #5
    Guest
    Is this what your trying to do Steve?

    Code:
    Public A, B As Integer
    
    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If Button = 1 Then Me.Line (A, B)-(X, Y)
        A = X: B = Y
    End Sub
    
    Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If Button = 1 Then Me.Line (X, Y)-(X + 15, Y + 15)
    End Sub

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Perfect. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width