Pages

Total Pageviews

Add This

Friday, May 13, 2011

Clear data from all TextBoxes in the Form

If you want to clear the data from all textboxes in the form just with one click, in one button enter the code bellow:



Dim tbox As Control
For Each tbox In Me.Controls
    If TypeOf tbox Is TextBox Then
        tbox.Text = Nothing
    End If
Next

No comments:

Post a Comment