|
-
Mar 4th, 2001, 07:14 PM
#1
Thread Starter
Hyperactive Member
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.
-
Mar 4th, 2001, 07:20 PM
#2
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
-
Mar 4th, 2001, 08:21 PM
#3
Thread Starter
Hyperactive Member
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.
-
Mar 6th, 2001, 05:31 AM
#4
PowerPoster
Megatron, will it be using Polyline API be faster as compare to the Line function that come with the PictureBox control.
-
Mar 6th, 2001, 10:37 AM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|