Posts

Showing posts from November, 2010

Visual Basic Online Course Make Sure All TextBoxes Empty

Image
Visual Basic Online Course Learn how to Make sure all Text boxes are clear first Step by step guide Say ......... you have 10 TextBox Controls and 10 ComboBox Controls on a VB6 form and you are taking their contents into a database tables , I guess you have to make sure that all the TextBox Controls and the ComboBox Controls are not empty ... So, you can do something like this .... 'Visual Basic Online Course 'Visual Basic 6 'Make Sure all Text Boxes are Empty / Clear first Private Sub CMDSAVE_CLICK() 'The button that transfer contents to tables 'if textbox1.text And Textbox2.text and ..... etc then MsgBox "Leave No Blanks" exit sub end if 'Some Codes ............ 'Some Codes ............ rs.update 'Or however you connect End Sub Github Gist Or, you may use something Like this :- I will try here to tell the VB project that TxtBx variable represents all the TextBox Controls on a form (Form1) and Cbos variable represents ...

Visual Basic Online Course Clear All TextBox controls

Image
Visual Basic Online Course 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 " . S o 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 Evry1falls 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