document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Protected Sub btnClear_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnClear.Click
  2.     ClearTextBox(Me)
  3. End Sub
  4.  
  5. Public Sub ClearTextBox(ByVal root As Control)
  6.     For Each ctrl As Control In root.Controls
  7.         ClearTextBox(ctrl)
  8.           If TypeOf ctrl Is TextBox Then
  9.               CType(ctrl, TextBox).Text = String.Empty
  10.           End If
  11.     Next ctrl
  12. End Sub
');