Clear Textbox Controls In A Form With Containers

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
Use this sub procedure to clear textbox controls in the currently active form. It can be modified to clear anything of course, simpy test with the TypeOf obj. This procedure can easily be modified to work in VB6. Just be sure to use typename() in place of typeof when checking for form control types.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: