Results 1 to 5 of 5

Thread: Help, urgent

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Unhappy

    How do i draw a triangle in a picture box, when i know either all the 3 sides, or all the 3 angles?
    Amon Ra
    The Power of Learning.

  2. #2
    Guest
    How about drawing 3 lines?
    Code:
    Private Sub Command1_Click()
        Picture1.Line (200, 200)-(300, 300)
        Picture1.Line (200, 200)-(100, 300)
        Picture1.Line (100, 300)-(300, 300)
    End Sub

  3. #3

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Exclamation No

    The problem is that i have the value for the sides in centimeter(probably) and i want to draw it on a pic box. I have to assume the probability that the triangle could be isocelest, right, or equilateral. tha problem with what u just gave me, is that i what if i get 12,4,5 fior the triangle values? how would i draw this triangle?
    Amon Ra
    The Power of Learning.

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Megatron, will it be using Polyline API be faster as compare to the Line function that come with the PictureBox control.

  5. #5

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Question So..

    So, how do i use the Polyline API to draww a triangle if i know the length of al the 3 sides, or the values of the angles?
    Amon Ra
    The Power of Learning.

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