Results 1 to 3 of 3

Thread: Creating line

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    7

    Creating line

    I was wondering is it possible to tell a program to draw a line, I mean that when form1 is empty but in the form_load is a piece of code that draws a line from side to a side of the form. If its possible how about coloring the line?

  2. #2
    AIS_DK
    Guest
    It's possible, it's easy. But form_load is not the place to do it.

    If you want' the code in the form_load event, you show set the autodraw property of the form to true. Else put this code in the form_paint event.

    Code:
    me.line (X1, Y1)-(X2, Y2),Color

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    7

    Smile

    Thanks AIS_DK that does the trick

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