search this site the web
Showing posts with label controls. Show all posts
Showing posts with label controls. Show all posts

Tuesday, March 16, 2010

VB6 code for Clearing all Textbox in a Form

'Add 1 CommandButton and few TextBoxes To Your Form.
'Insert the following code to your form:

Private Sub Command1_Click()
Dim Contrl As Control
For Each Contrl In Form1.Controls
If (TypeOf Contrl Is TextBox) Then Contrl.Text = ""
Next Contrl
End Sub