rahulpatel
Programmer
Don't you just hate it when the simplest things seem the most difficult objects.
I have 2 textboxes on my form. I want to add 5 to the second textbox when a certain value is first textbox. eg
However this doesn't work obviously. How do I do it??
I have 2 textboxes on my form. I want to add 5 to the second textbox when a certain value is first textbox. eg
Code:
Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If TextBox1.Text = "123456" Then
TextBox2.Text = " " + 5
End If
End Sub
However this doesn't work obviously. How do I do it??