-1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged
If String.IsNullOrEmpty(TextBox1.Text) OrElse String.IsNullOrEmpty(TextBox2.Text) Then Exit Sub
If Not IsNumeric(TextBox1.Text) OrElse Not IsNumeric(TextBox2.Text) Then Exit Sub
TextBox3.Text = CDbl(TextBox1.Text) + CDbl(TextBox2.Text)
End Sub
此代碼適用於我,但是當我刪除兩個文本框的值總仍然存在...我的問題的任何解決方案?自動計算
它的工作原理!非常感謝你的兄弟:) – user3342642 2015-02-23 09:26:36