Monday, October 5, 2009

Tips and Tricks Visual Basic 6.0 Clear All TextBoxes In A Form


Tips and Tricks Visual Basic 6.0 Clear All TextBoxes In A Form.
'Add 1 CommandButton and few TextBoxes To Your Form.
'Insert the following code to your form:

Code 


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

0 comments:

Your Ad Here