MonaVohra
03-20-2007, 07:50 PM
i am trying to create a button so that when it is clicked it removes the values ina textbox one by one from right to left. i have done this:
Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button38.Click
If Len(TextBox1.Text) > 0 Then
TextBox1.Focus()
TextBox1.Text = " "
End If
But this removes all of the values in the textbox. How can the values be removed one by one each time the button is clicked?
Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button38.Click
If Len(TextBox1.Text) > 0 Then
TextBox1.Focus()
TextBox1.Text = " "
End If
But this removes all of the values in the textbox. How can the values be removed one by one each time the button is clicked?