Creating Database Using Visual Data Manager in VB6

Visual Data Manager is a built-in tool in Visual Basic 6 to create database applications. You can use it to create and manage databases in VB6 IDE without having to use external database programs such as MS Access  FoxPro, Dbase and etc.

Following the link below to get step by step guide on how to create databases using Visual Data Manager:

http://www.vbtutor.net/index.php/creating-database-using-visual-data-manager/

Sample code for converting number systems

Here is a working sample code for converting decimal number system to hexadecimal number system and vice versa.

Private Sub cmdConvert_Click()
Dim decNumber As Double
Dim hexNumber As String
If Text1.Text <> “” Then
decNumber = Val(Text1.Text)
hexNumber = Hex(decNumber)
Text2.Text = hexNumber
Else
hexNumber = Text2.Text
decNumber = CInt(“&H” & hexNumber)
Text1.Text = decNumber

End If

End Sub

The interface is as follows:

Visual Basic 2012 Lesson 3

In VB2012, before writing an event procedure for a control in VB2012 to response to a user’s input or action, you have to set certain properties for the control to determine its appearance and how it will work with the event procedure. You can set the properties of the controls in the properties window at design time or at run time.

For details, please follow the link below:

http://www.vbtutor.net/index.php/visual-basic-2012-lesson-3-working-with-control-properties/

For tutorial updates and participation in discussion, follow us on our Facebook page.

Inventory Management System

I have spent two weeks in working on  an inventory management system. Half way through I  encountered numerous issues that caused many sleepless nights thinking on ways to overcome them. Finally I was able to accomplished the task and here is the finished product. Insert is the interface of the system. I will discuss about the code later.