title: Is there any way to create a global function to clear TextBoxes?
body: <p>I was wondering if there is any way to create a class with a global function/method/sub that upon
  calling it will clear some of the textboxes of the form. How can i handle the different number of textboxes
  each forms has?</p>
  
  <p>The current code clears only the pre-defined 2 boxes. Thank you.</p>
  
  <pre><code>Public Class ClearElements
  
      Public Sub CLEAR_TEXT(ByVal text1 As TextBox, ByVal text2 As TextBox)
          text1.Clear()
          text2.Clear()
      End Sub
  
  End Class
  </code></pre>