User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 402,001 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,433 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 1237 | Replies: 2
Reply
Join Date: Sep 2005
Location: St. Louis
Posts: 145
Reputation: kahaj is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
kahaj kahaj is offline Offline
Junior Poster

Clearing Text Boxes

  #1  
Mar 14th, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 58
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: Clearing Text Boxes

  #2  
Mar 15th, 2007
withdrawalTextBox.Text = String.Empty 
depositTextBox = String.Empty
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Join Date: Jul 2007
Posts: 4
Reputation: potatochips is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
potatochips potatochips is offline Offline
Newbie Poster

Re: Clearing Text Boxes

  #3  
Jul 16th, 2007
depositTextBox.Text =" "
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 9:05 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC