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).
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
Comment