I am trying to find a code to clear all text boxes in a form. I am using VB8
Here is the code I found but I get an error telling me I need a comma between two arguments
Private Sub btnclearall_Click
Dim ctl As New Control
For Each ctl In Me.Controls
Next
If Typeof ctl Is textbox Then
Dim txtcontrol As Textbox = Directcast (ctl.Textbox)
Me.text = StringEmpty
Thanks