home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Geometry"
- ClientHeight = 4635
- ClientLeft = 1530
- ClientTop = 795
- ClientWidth = 6480
- Height = 5325
- Left = 1470
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 4635
- ScaleWidth = 6480
- Top = 165
- Width = 6600
- Begin CommandButton Command2
- Caption = "Cancel"
- Height = 375
- Left = 4440
- TabIndex = 12
- Top = 4080
- Width = 1815
- End
- Begin CommandButton Command1
- Caption = "OK"
- Height = 375
- Left = 4440
- TabIndex = 7
- Top = 3600
- Width = 1815
- End
- Begin TextBox Area
- Height = 375
- Left = 3120
- TabIndex = 11
- Top = 2880
- Width = 2415
- End
- Begin TextBox Semi
- Height = 375
- Left = 3120
- TabIndex = 9
- Top = 2280
- Width = 2415
- End
- Begin TextBox SideC
- Height = 375
- Left = 4800
- TabIndex = 6
- Text = "5"
- Top = 1320
- Width = 975
- End
- Begin TextBox SideB
- Height = 375
- Left = 2640
- TabIndex = 5
- Text = "4"
- Top = 1320
- Width = 975
- End
- Begin TextBox SideA
- Height = 375
- Left = 360
- TabIndex = 2
- Text = "3"
- Top = 1320
- Width = 975
- End
- Begin Label Label6
- Caption = "Area of Triangle:"
- Height = 255
- Left = 360
- TabIndex = 10
- Top = 3000
- Width = 2415
- End
- Begin Label Label5
- Caption = "Semi Perimiter of Triangle:"
- Height = 255
- Left = 360
- TabIndex = 8
- Top = 2400
- Width = 2415
- End
- Begin Label Label4
- Caption = "Side C:"
- Height = 255
- Left = 4800
- TabIndex = 4
- Top = 840
- Width = 735
- End
- Begin Label Label3
- Caption = "Side B:"
- Height = 255
- Left = 2640
- TabIndex = 3
- Top = 840
- Width = 735
- End
- Begin Label Label2
- Caption = "Side A:"
- Height = 255
- Left = 360
- TabIndex = 1
- Top = 840
- Width = 735
- End
- Begin Label Label1
- Caption = "ENTER THE THREE SIDES OS A TRIANGLE:"
- Height = 255
- Left = 360
- TabIndex = 0
- Top = 240
- Width = 4455
- End
- Begin Menu MenExit
- Caption = "E&xit"
- End
- Sub Command1_Click ()
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim retcode As Integer
- Dim retsemi As Double
- Dim retarea As Double
- retcode = Sides(Val(SideA.Text), Val(SideB.Text), Val(SideC.Text))
- If retcode <> 1 Then
- MsgBox "INVALID TRIANGLE !!", 48, "Triangle"
- SideA.Text = ""
- SideB.Text = ""
- SideC.Text = ""
- Semi.Text = ""
- Area.Text = ""
- SideA.SetFocus
- Exit Sub
- End If
- retsemi = SemiPer(Val(SideA.Text), Val(SideB.Text), Val(SideC.Text))
- retarea = TrArea(Val(SideA.Text), Val(SideB.Text), Val(SideC.Text))
- Semi.Text = Str$(retsemi)
- Area.Text = Str$(retarea)
- End Sub
- Sub Command2_Click ()
- SideA.Text = ""
- SideB.Text = ""
- SideC.Text = ""
- Semi.Text = ""
- Area.Text = ""
- SideA.SetFocus
- End Sub
- Sub MenExit_Click ()
- End Sub
-