我已经这样做了几天。我想做的是当我点击进入时。我在 txtbox1 中输入的数字将乘以 12,然后显示输出到 txtbox2。但没有运气。有人能帮助我吗?这是我的代码:
Private Sub txt1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txt1.KeyDown
Dim a, b, c As Integer
txt1.Text = a
b=a*12
If e.KeyCode = Keys.Enter Then
txt2.text = b
End If
End Sub