Results 1 to 4 of 4

Thread: Lines

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Lines

    how do i create a dotted line rather than a solid one.
    I would be grateful for any help
    Thanks

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Lines

    Change the BorderStyle property of the Line

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Lines

    Actually, its the DrawStyle property.
    Paste this code into a new project and click on the form

    VB Code:
    1. Private Sub Form_Click()
    2.   Dim I As Integer
    3.   ScaleHeight = 8 ' Divide Height by 8
    4.   For I=0 to 6
    5.     DrawStyle = I ' Change Style
    6.     Line (0,I+1) - (ScaleWidth, I+1) ' Draw new line
    7.   Next I
    8. End Sub

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Lines

    I was refering to the line control, not the Line drawing function.
    He didnt specify how he drew the line

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