954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Clearing Text Boxes

I can't figure out how to clear the text boxes in this program when the Enter button is clicked. Here is what I have...

Public Class AccountInformationForm

    Private Sub enterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles enterButton.Click
        balanceLabel.Text = Val(balanceLabel.Text) - Val(withdrawalTextBox.Text) _
        + Val(depositTextBox.Text)
    End Sub
End Class ' AccountInformationForm
kahaj
Junior Poster
193 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 
withdrawalTextBox.Text = String.Empty 
depositTextBox = String.Empty
hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
 

depositTextBox.Text =" "

potatochips
Newbie Poster
15 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You