Hi, I have a button that adds the number one to a text box, now the problem is that if I press the button twice it gets rid of the first one and imputs the second.
CODE:
Private Sub one_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles one.Click
If cntrlr.Text = "Box 1" Then
txtDisplay.Text = "1"
Else
txtDisplay2.Text = "1"
End If
End Sub
Any help?
Help with adding numbers to text box.
Started by xGhost4000x, Aug 24 2008 04:52 PM
3 replies to this topic
#1
Posted 24 August 2008 - 04:52 PM
|
|
|
#2
Posted 26 August 2008 - 07:15 AM
Try this:
You will need to set the multiline value of the textbox to "true"
txtDisplay.Text = txtDisplay.Text & vbCrLf & "1"
You will need to set the multiline value of the textbox to "true"
#3
Posted 26 August 2008 - 10:16 PM
It worked! Thanks, for the help.


Sign In
Create Account

Back to top









