FoSsiL
Newcomer
I cant get this to work, i really need help. i want to a fomula n x 35 = labor then n x 5% = cost and labor + cost = total. i really need help. Im a beginner in this, so if you have the time, can you help me. thnx!
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim rate, sale, labor, total, cost As Double
With lstResults.Items
rate = 35
sale = 0.05
total = labor + cost
.Clear()
.Add(labor = CDbl(TextBox2.Text * rate))
.Add(cost = CDbl(TextBox3.Text * sale))
.Add(total = CDbl(labor + cost))
End With
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim rate, sale, labor, total, cost As Double
With lstResults.Items
rate = 35
sale = 0.05
total = labor + cost
.Clear()
.Add(labor = CDbl(TextBox2.Text * rate))
.Add(cost = CDbl(TextBox3.Text * sale))
.Add(total = CDbl(labor + cost))
End With
End Sub