Search Tools Links Login

Clear all Texbox in a Form


Visual Basic 6, or VB Classic

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.

Code

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: 94 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.