> ' Based on the control > Select Case True > ' Textbox > Case TypeOf (locontrol) is System.Web.UI.WebControls.TextBox > >Nice trick, I am now wondering if a single evaluation to a string in the Select Case would be as fast as using TypeOf in each Case.