Search Tools Links Login

Clear all Texbox in a Form

This Code clears all textboxes in a form.This code is useful if u use so much textbox contols in a form and have to clear all of them when the user selects (New Record) selection.

Original Author: LEVENT YILDIZ

Side Effects

no side effects.


For i = 1 To Me.Controls.Count - 1
    If TypeOf Me.Controls(i) Is TextBox Then
      Me.Controls(i).Text = ""
    End If
  Next i

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 83 times


Visual Basic 6


No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.