Visual Basic 6.0 translation

Monday, November 29, 2010

VB 6.0 Reverse String

New VB 0.6 Project.

Form 1

Text1
MultiLine : True
Name : Txt1


Command1
Caption : Reverse
Name : CmdRev

Command2
Caption : Normal
Name : CmdNorm

Command3
Caption : Exit
Name : CmdX

Coding .......

CmdRev_Click()
Txt1.Text = StrReverse(Txt1.Text)
End Sub

CmdNorm_Click()
Txt1.Text = StrReverse(Txt1.Text)
End Sub

CmdX_Click()
End
End Sub

--------------------Good Luck--------------------------

Tuesday, November 2, 2010

Visual Basic Online Course Make Sure All TextBoxes Empty

Visual Basic Online Course
Make sure all Text boxes are clear first
Say ......... you have 10 TextBoxes and 10 ComboBoxes on a form and you are taking their contents into a database tables, i guess you have to make sure that all the TextBoxes and the ComboBoxes are Not Empty ... SO you can do something like This ....


OR, You may use something Like this :-

I will try here to tell the VB project that (TxtBx) represents all the TextBoxes Controls on a form (Form1) and (Cbos) represents all the ComboBoxes on the same form .... so the senario may be :

Hey, Form1 .... Be aware that (TxtBx) represents all my textboxes on You, and (Cbos) represents all my ComboBoexes On you, so whenever you find one Empty Just Give me a MsgBox and (Exit) the sub . OK?
But If not , continue Updating my database tables .... are we clear, form1 ??

How could we just Code These Lines of Scenario .......

Here we go :


Monday, November 1, 2010

Visual Basic Online Course Clear All TextBox controls

Visual Basic Online Course


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 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 Online Course

vb6 (63) Application Development (45) Visual Basic Online Course (45) Online Visual Basic Course (44) Visual Basic Help (44) Visual Basic Programming (42) IT Jobs (39) VB6 developer (38) Visual Basic Course (38) Visual Basic 6.0 (26) Microsoft Visual Basic 6.0 (25) VB6.0 (24) Visual Basic Programmers (24) vb 6.0 (24) visual basic programming tutorial (19) Third lesson (16) Source code download for Visual Basic 6.0 (14) Source code for Visual Basic 6.0 (10) visual basic tutorial (9) Visual Basic 6 (5) Visual Basic Courses (5) Lesson 3 (4) VB 0.6 - TreeView control (4) VB 0.6 With TreeView Control (4) VB6 Course (3) Create ActiveX (2) How to automate MS-Access from Visual Basic 6.0 (2) Add controls at runtime (1) Back up your Database (1) Change ActiveX icon (1) Change screen resolution (1) Create FTP (1) Crystal Reports 4.6 (1) Crystl32.ocx could not be loaded (1) DataGrid Columns re-size (1) Date Calculation (1) DateAdd Function (1) DateDiff function (1) FTP (1) Marquee Title Bar (1) Marquee VB 6.0 TitleBar (1) Method 'Action' of object 'CrystalCtrl' Failed (1) Microsoft Access with Visual Basic 6.0 (1) OpenSchema method (1) Save File Using CommonDilog (1) Track Database path (1) VB 0.6 - Registry (1) VB 0.6 With Registry Editor (1) VB 6.0 Access (1) VB 6.0 OOP (1) VB6 Access2003 ADO Like % (1) VB6 Add Date (1) VB6 Add Time (1) VB6 Date calculation (1) VB6 Subtract Date (1) Visual Basic Remote (1) Win7 (1) Windows7 (1) ms access networking details (1) remote Visual Basic DB (1) rounded and transparent forms (1) vb 0.6 style (1) vb 6.0 Remote Database (1)