Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
500MB 27GB Web Hosting - $9.95/Month
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleClear the TextBoxes on a form
KeywordsTextBox, clear, erase, reset
CategoriesControls
 
Loop through the Controls collection. For each TextBox, set its Text property to "".
 
' Clear all TextBoxes on the form.
Private Sub ClearTextBoxes()
Dim ctl As Control
    
    ' Clear all the TextBoxes on the form.
    For Each ctl In Controls
        If TypeOf ctl Is TextBox Then ctl.Text = ""
    Next ctl
End Sub
 
 
Copyright © 1997-2001 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated