VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Clear all Texbox in a Form

by LEVENT YILDIZ (3 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

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.

Side Effects
no side effects.

Rate Clear all Texbox in a Form

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

Download this snippet    Add to My Saved Code

Clear all Texbox in a Form Comments

No comments have been posted about Clear all Texbox in a Form. Why not be the first to post a comment about Clear all Texbox in a Form.

Post your comment

Subject:
Message:
0/1000 characters