我有一个表单,其中包含 3 个文本框,用于 3 个输入值,以及一个用于输出的列表框。我需要用户能够输入 3 个不同的数字并单击一个按钮来查找平均值。我不确定如何做/处理这个。任何帮助是极大的赞赏。
还是卡住了……
Private Sub btnAverage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnAverage.Click
Dim a As Integer = CInt(txtone.Text)
Dim b As Integer = CInt(txtTwo.Text)
Dim c As Integer = CInt(txtThree.Text)
Dim average As Integer
average = (a + b + c) / 3
lstOutput.Text = average