Area of a Trapezoid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterggmss
    New Member
    • Oct 2006
    • 6

    #1

    Area of a Trapezoid

    Hello,
    Sorry for asking so many questions. I need to find the area of a trapezoid as part of a Visual Basic application for Windows (although it will run in Linux through WINE - I'll make sure of that). I dont have my code with me at the moment, it looks something like this, when I try it with 1 as txtA.text, txtB.text and txtH.txt, I get 5.5 as the answer (should be 2.5). I had another problem which I solved (click ere).

    Code:
    Private Sub cmcCalculate_Click()
    lblResultArea.Caption = ((txtA + txtB) * txtH) / 2
  • peterggmss
    New Member
    • Oct 2006
    • 6

    #2
    Sorry here's the link to the other problem I solved: Long URL

    Comment

    Working...