Hello!!!

I have created a class sub procedure to clear textboxes in any form but I

can't seem to compile my class library. The error always keeps me from

compiling.

Here are the codes:

VB Code:
  1. Public Shared Sub ClearTextboxes(ByVal AutoForms As Form, ByVal StartText As Integer, ByVal EndText As Integer)
  2.         Dim Start As Integer
  3.         For Start = StartText To EndText
  4.             Select Case Start
  5.                 Case 1
  6.                     AutoForms.textbox1.text = "" 'Textbox1 is not recognized by the compiler when textbox1 is in form1.
  7.                 Case 2
  8.                     AutoForms.textbox2.text = "" 'Textbox2 is not recognized by the compiler when textbox1 is in form1.
  9.                 Case 3
  10.                     AutoForms.textbox3.text = "" 'Textbox3 is not recognized by the compiler when textbox1 is in form1.
  11.                 Case 4
  12.                     AutoForms.textbox4.text = "" 'Textbox4 is not recognized by the compiler when textbox1 is in form1.
  13.                 Case 5
  14.                     AutoForms.textbox5.text = "" 'Textbox5 is not recognized by the compiler when textbox1 is in form1.
  15.                 Case 6
  16.                     AutoForms.textbox6.text = "" 'Textbox6 is not recognized by the compiler when textbox1 is in form1.
  17.             End Select
  18.         Next
  19.     End Sub

Please help me.