Visual Basic 6.0 translation

Tuesday, December 25, 2012

Visual Basic Online Course - Understanding the control resizing method

 Visual Basic Online Course

How does (Re-sizing) work ?

Download the example (MediaFire.com link)

Understanding how resizing controls work !

The basic Idea of resizing :

When resizing : Control Width grows and shrinks when form (Container) grows and shrinks with (Module). The (Modu) is the growing or shrinking Module ....

Let say we have  a control (Width = 10) on a form (Width = 20) then (Control : Width) = (10 : 20)

So when resizing the (form to = 40) then the (Control will grow to = ???) --------- Answer :
   ( 10 : 20 ) = ( ??? : 40)
   ??? = 20 , Why ?

Because the (Modu = [40 / 20]), then the ??? = 10 * Modu
??? = 20 ......... And so on ...

In the example attached you will notice that resizing the form with cause resizing the control as well.
Thanx for reading


Thursday, December 20, 2012

Visual Basic Online Course - ProgressBar Colors

Visual Basic Online Course

How to change the ProgressBar colors by code

Visual Basic Progressbar
Progressbar


The ProgressBar control in Visual Basic 6.0 is replaced by the Windows Forms ProgressBar control in Visual Basic 2005. The names of some properties, methods, events, and constants are different, and in some cases there are differences in behavior.

Conceptual Differences

Negotiate Property

In Visual Basic 6.0, the Negotiate property of a ProgressBar control can be used to automatically hide the control when a toolbar is displayed.
The Visual Basic 2005 ProgressBar control does not have a Negotiate property; you can achieve the same effect by setting the Visible property to false at run time.

Orientation Property

In VB6, a Progress Bar control can be displayed either horizontally or vertically by setting the Orientation property. The Visual Basic 2005 ProgressBar control can only be displayed horizontally.

Create New (Module)


Then in the form_load() section



Monday, December 3, 2012

Visual Basic Online Course - WildCards in Database

Visual Basic Online Course

Using Wild Cards when searching Database

Problem : I have 50 records of mobile phone numbers and they start with different digits according to network area code, I want to search the [MobileNo] record from [TextBox] so when I write the first digit i get some search result and the second digit returns the next search result .... etc as i go, using TextBox1_Change() event, i want when every time i type a digit i get a result in the DataGrid control

Solution Using ADO + MS-Access 2003 + Sql Statements


That means : Search all records that contain these values within.
But, If you want to search for records start with certain values, then use :

And, If you want to search for records end with certain values, then use :


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)