Visual Basic Online Course Clear All TextBox controls

Visual Basic Online Course

vb6 clear all textbox Text controls on a form
vb6 clear all textbox Text controls on a form


TextBoxes 


are just like any other Objects on a form, could be cleared or we can say "Make it empty" .

So if we have :

Textbox1 and Textbox2 and Textbox3 on a vb6 form and we have a button called "CmdNew" and its function is to clear all the writings in all of the 3 TextBoxes .... we can do something like that :-

Or .........

Now ........

What if we have ComboBoxes too ?
Or .........
What if we have various objects that we wanna set thier values to anything .... ??
- if you understood the previous example i think you already knew the answer ....

Good Luck

Visual Basic 6.0 Lessons, Tricks, Tutorials and help links :

VB6 Popular Posts

Visual Basic Online Course - Excel 2003 Part 1

VB 6.0 - Save/Retrieve Images From Access Database

Visual Basic Online Course - ProgressBar Colors

VB 6.0 with MS-Access 2003 Copy a record from table to another

Free download Visual Basic 6 Documentation MSDN

Visual Basic Online Course - Run-time error '3021' : Either BOF or EOF is True, or the current record has been deleted.

Visual Basic Online Course - Create a Phone Book

VB6 Crystal Reports 4.6 Error : Method 'Action' of object 'CrystalCtrl' Failed

Visual Basic Online Course - Excel 2003 Part 2