Student Information program using vb6.0
Student Information program using vb6.0 which compose of the following functions.
1. Add or Append
2. Update
3. Delete
4. Seacrch
5. Displaying Data
6. Reports
7. Displaying record to MSFlexGrid.
8. Displaying record to Listview.
Sunday, February 6, 2011
Basic Data Manipulation using VB 6.0
Hello everyone! :D
This is a very simple program
which i created for my students in DBMS (Database Management System),
this application allows the user to add, search and display data using
MS Access if you noticed that there's no delete and edit, well i never
put a function yet, because i want that to be finished by my pretty and
handsome students in DBMS. hehehehehe Enjoyed to download this
application maybe later i'll just update this one if they are done
working the edit and delete.
Oppsss i forgot, i mean including the report too.... :D
Heres the link below.
Sunday, April 11, 2010
Webcam using VB6.0


This program allows user to take a snapshot and able to save your image to "Folder Picture" inside in this folder, actually you can use this program to your own application or project that you will be created, you can download this program below.
You can post comments and suggestion below and you can also request by sending me via email or chat.
Thank you so much for the support.
Download File
Friday, February 20, 2009
Sample backup in Microsoft access using vb6.0..
I have here a simple program using Microsoft Visual Basic 6.0 that will
crate a backup database of Microsoft Access and also it can restore
Backup database if you want. A simple program but gives a lot of
knowledge.. you can download this program below.. Thank you so much..

You can download my example below.
Download File
You can download my example below.
Download File
Tuesday, February 10, 2009
Registration program using Visual Basic 6.0 with Database.
I created this program for 7th Mega Job Fair [April 28 and 29] at Limketkai Center Cagayan de oro Philippines. Using Visual Basic 6.0 this program allows users to add, edit ,delete, cancel, search and generate ID and General reports
and it will automatically count number of JOB SEEKERS. I am using
Microsoft Acces for the DATABASE of this program and ADODB for the recordset
access and connection of database. You can download this program and
you post comments and suggestions below. Thank You! have a nice day!

You can download my example below.
Download File
You can download my example below.
Download File
Saturday, February 7, 2009
Sample program using ADODC WITH DATABASE.
This VB6.0 program allows user to add, edit, delete, search by option
and display record using ADODC RECORD and ADODC CONNECTION. Microsoft
Access for the DATABASE of this Program
.
You can download my example below.
Download File
You can download my example below.
Download File
Wednesday, February 4, 2009
Basic student record with adding of pictures using vb6.0
This vb6.0 program allows user to add with student picture, edit, delete
, save and dynamic search. I am using Microsoft Access for my Database,
ADODB connection and Record set. You post comment about this program.
Thank you!

You can download my example below.
Download File
You can download my example below.
Download File
How to create folder using vb6.0?
This program allows user to create folder and delete using visual basic 6.0..

You can download my example below.
Download File
You can download my example below.
Download File
Monday, January 26, 2009
How to display date and time using vb6.0?
Getting the time and Date in your computer basically its easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that put timer in your form too.
Timer1 is the default name of the timer and set timer interval into 10. And double click your form which is your form1 and after that i want you to put this code inside your form load() . label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program. You can download my example below.. Thats all!

Download File
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that put timer in your form too.
Timer1 is the default name of the timer and set timer interval into 10. And double click your form which is your form1 and after that i want you to put this code inside your form load() . label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program. You can download my example below.. Thats all!

Download File
How to display date and time using vb6.0?
You may set first the TIME and DATE of your system i mean you computer
because there are some cases that the time and date in your computer is
not set so may set first before doing some actions inyour visual basic 6.0.
Getting the time and Date in your computer basically its very easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that i want you put 1 command button inside you form which is command1. And double click your command button put this code inside command1_click() label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program and try to click your command button and it will automatically appear the time and date. You can download my example below.. Thats all!

You can download my example below.
Download File
Getting the time and Date in your computer basically its very easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that i want you put 1 command button inside you form which is command1. And double click your command button put this code inside command1_click() label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program and try to click your command button and it will automatically appear the time and date. You can download my example below.. Thats all!

You can download my example below.
Download File
How to create text file in vb6.0?
Creating and Writing text in Text file or Notepad in Visual Basic 6.0 here the following procedure. In this example i have 1 text box in my form and 1 command button
in my form. After clicking your command button basically it will create
notepad and write text depending the text that you inputted in you text
box. You can download this example below.

You can download my example below.
Download File

You can download my example below.
Download File
How to create Factorial using vb6.0?
Private Sub Command1_Click()
Dim x As Integer
Dim ctr As Integer
ctr = 1
For x = 1 To Val(Text1.Text)
ctr = ctr * x
Next x
Label1.Caption = "Factorial of " & Text1.Text & " is" & ctr
End Sub
Download File
Dim x As Integer
Dim ctr As Integer
ctr = 1
For x = 1 To Val(Text1.Text)
ctr = ctr * x
Next x
Label1.Caption = "Factorial of " & Text1.Text & " is" & ctr
End Sub
Download File
How to declare array in vb6.0?
Example:
Dim myArrayName(0 To 5) As String
'The range of this array is 0 to 4 only.
'Data type is String it means you can store only string value in your array.
myArrayName(0)="John"
myArrayName(1)="Mario"
myArrayName(2)="Mark"
myArrayName(3)="Ailey"
myArrayName(4)="Merbert"
Dim myArrayName(0 To 5) As String
'The range of this array is 0 to 4 only.
'Data type is String it means you can store only string value in your array.
myArrayName(0)="John"
myArrayName(1)="Mario"
myArrayName(2)="Mark"
myArrayName(3)="Ailey"
myArrayName(4)="Merbert"
What is a programming language ?!
A Computer cannot understand any persons spoken language. A spoken language such as English , French, is simply too general and ambiguous for computers to understand. Therefore, we must adapt to the machine and learn the computer language so that the computer can understand. This is where visual basic comes into it - when you type visual basic source code into the computer, the computer processes these statements into Visual Basic language. The statements in visual basic, however, do not have multiple meanings within the same context.Lesson 1 Hopefully you will learn this during lesson 1. :
The Development EnvironmentLearning the ins and outs of the Development Environment before you learn visual basic is somewhat like learning for a test you must know where all the functions belong and what their purpose is. First we will start with labelling the development environment.The project explorer windowThe Project explorer window gives you a tree-structured view of all the files inserted into the application. You can expand these and collapse branches of the views to get more or less detail (Project explorer). The project explorer window displays forms, modules or other separators which are supported by the visual basic like class'es and Advanced Modules. If you want to select a form on its own simply double click on the project explorer window for a more detailed look. And it will display it where the Default form is located.Properties WindowThe Default LayoutWhen we start Visual Basic, we are provided with a VB project.A VB project is a collection of the following modules and files.
Understanding the tool box.
Opening an existing Visual Basic project.Microsoft have included some freebies with visual basic to show its capabilities and functions. Dismantling or modifying these sample projects is a good way to understand what is happening at runtime. These files can be located at your default directory /SAMPLES/To Open these projects choose 'Open Project' from the 'File' menu. Then Double click on the samples folder to open the directory then Double click on any project to load it.Opening a new visual basic file & Inserting Source code.From looking at the examples it time to make your own application. Choose 'New Project' from the 'File' menu. Use the blank form1 to design a simple interface for an estate agents database, have some textboxes for names and other details. Insert some controls and make it look professional. Textboxes can be used to store there name and other details, make sure you put a picture box in for a picture of the house. Now insert the following source code for your application.Private Sub Form_Load() Picture1.Picture = LoadPicture("C:\Program Files\VB\Graphics\Icons\Misc\MISC42.ICO") End Sub Running and viewing the project in detail.Once an application is loaded it can be run by click on theIn this example the project has been loaded and the maillist.frm has been selected for viewing. This Ms Mail example project useds 6 forms and 1 modules. In Design mode, when the form is viewed, the code attached to any screen object may be inspected by double clicking on that object. The screen shots below show the interface of the Ms Mail example (.../samples/Comtool/VBMail/MaiLLST.FRM) to view the code for this form select Private Sub SetupOptionForm(BasePic As Control) BasePic.Top = 0 BasePic.Left = 0 BasePic.Visible = True BasePic.enabled = True OKBt.Top = BasePic.Height + 120 Me.width = BasePic.Width + 120 Me.Heigh = OkBt.Top + OkBt.Height + 495 End Sub Making your first *.exe!?To make an excutable from a project choose 'MakeMake project.exe from the 'File' menu. Then click once on the Make project.exe choose a default location to store your executable, you can also change some advanced options by clicking on the Options.. tag before saving your exeThe above image will be displayed in the comment's value type some comments company name name etc... The Title tag represents the caption you will see if you press Control + Alt + Del. And the icon is the icon that will be available on the execute icon. As you can see it is quite simple to understand. All the comments, data and name appear when you click on the compiled (execute) exe and click properties. Saving your visual basic project.Save your work to disk. Use the Windows Explorer or any desktop windows to check that all files have been saved. There should be one Visual Basic Project (.VBP) file and separate Form (.FRM) and Module (.BAS) files for each form and module used in the current project.Button Properties for reference
|
Lesson 2 Hopefully you will learn this during lesson 2. :
Understanding EventsHopefully you will learn this during lesson 2. :What an event isThe ‘look’ of a Visual Basic application is determined by what controls are used, but the ‘feel’ is determined by the events. An event is something which can happen to a control. For example, a user can click on a button, change a text box, or resize a form. As explained in Creating a Visual Basic Application, writing a program is made up of three events: 1) select suitable controls, 2) set the properties, and 3) write the code. It is at the code writing stage when it becomes important to choose appropriate events for each control. To do this double click on the control the event will be used for, or click on theThe left hand dropdown box provides a list of all controls used by the current form, the form itself, and a special section called General Declarations. The corresponding dropdown box on the right displays a list of all events applicable to the current control (as specified by the left hand dropdown box). Events displayed in bold signify that code has already been written for them, unbold events are unused. To demonstrate that different events can play a significant role in determining the feel of an application, a small example program will be written to add two numbers together and display the answer. The first solution to this problem will use the click event of a command button, while the second will the change event of two text boxes. Click EventBefore any events can be coded it is necessary to design the interface from suitable controls. As shown in the screen shot below use: 2 text boxes to enter the numbers, a label for the ‘+’ sign, a command button for the ‘=’ sign, and another label for the answer.Writing your own evenIn the first example the user has to enter two numbers and then click on the equals button to produce an answer. However, the program can be changed so that the answer will be calculated every time either of the two numbers are changed without requiring an equals button. To do this first remove the equals command button and replace it with a label with the caption set to ‘=’. Now, bring up a code window and copy to the Windows clipboard the line lblAnswer = Str$(Val(txtNumber1.Text) + Val(txtNumber2.Text)). Using the left hand dropdown box select the first text box and then select the Change event from the right dropdown box. Then paste the code from the clipboard into the empty subroutine. Select the second text box and do the same. The same line is required twice because the two click events belong to two separate controls. The final code should look like:Private Sub txtNumber1_Change() label2.Caption = Str$(Val(text1.Text) + Val(text.Text)) End Sub Private Sub txtNumber2_Change() label2.Caption = Str$(Val(text1.Text) + Val(text2.Text)) End SubRun the program again, enter the two numbers and observe what happens. Each time a digit changes the answer is recalculated. Note: There may be times when recalculating more advanced problems takes too long on each change and so requiring the user to enter all the data first and then click on an answer button might more appropriate. Using the event GotFocus eventSo far only one event has been used per control, however this does not have to be the case! Add a StatusBar control to the bottom of the form, bring up the code window usingCheckBoxesOption bars are used quite often in the windows environment as they can only have two outputs 0 and 1 these get used to process the form. In this example it will be used to change the some text from normal to bold or to italic.Private Sub chkBold_Click() If chkBold.Value = 1 Then ' If checked. txtDisplay.FontBold = True Else ' If not checked. txtDisplay.FontBold = False End If End Sub Private Sub chkItalic_Click() If chkItalic.Value = 1 Then ' If checked. txtDisplay.FontItalic = True Else ' If not checked. txtDisplay.FontItalic = False End If End Sub This example can be found at "smaples/PGuide/controls/Controls.vbp" or downloaded free from the download page. The checkboxes can be turned on at runtime by simply typing name.value = 1 ' 1 On , 0 off Note: If you create the frame first and then add the option buttons by single clicking on the toolbox and dragging the cross hair cursor on the frame to create the controls, they will be attached to the frame and will move with it if you decide to re-position the frame. Notice, however, that if you create the frame first and double click the screen controls, then drag them from the centre of the form on to the frame, they will not be attached to it and will be left behind when you try to move the frame. Try this out. Notice that when you run your application the same icon is loaded first (probably the clipboard, if you created that option button first). You can alter the option that has the focus first, by selecting one of the other option buttons and setting its property tabindex to 1. Option ButtonsChanging the background colourChanging the background colour gets used mostly by freeware, or the type of programs you generate for use with banners or adverts, anyway it might come in useful sometime. This example shows an ordinary picture of a smiley face then I put in some nice background colours to make it stand out more.Private Sub Form_Load() BackColor = QBColor(Rnd * 15) ForeColor = QBColor(Rnd * 10) Picture1.BackColor = QBColor(Rnd * 15) Picture1.ForeColor = QBColor(Rnd * 10) End Sub List boxesNote : List boxes and combo boxes are used to supply a list of options to the user. The toolbox icons representing these two controls areA list box is used when the user is to be presented with a fixed set of selections (i.e. a choice must be made only from the items displayed, there is no possibility of the user typing in an alternative). Examples might be offering a list of the days in a week, the available modules in an elective catalogue, the holiday destinations available from a particular airport or the types of treatment offered by a beauty salon. To create a list box, double click on the toolbox icon Add to a LisboxPrivate Sub Form_Load() List1.AddItem "Monday" List1.AddItem "Tuesday" List1.AddItem "Wedsday" List1.AddItem "Thursday" List1.AddItem "Friday" List1.AddItem "Saturday" List1.AddItem "Sunday" End Sub The source code should look somthing like this : Removing & Advanced OptionsNote: They appear in the order they were typed if you changed the properties window by changing sort order = true then they will go into alpaetical order. List items can be added and deleted all the list is counted as the order they are in so for exapmple if you wanted to delete "Tuesday" you would type list1.RemoveItem 1And to add to the list in a paticular order just add list1.additem "My Day", 5 This will be added after saturday. And finally to clear the lisbox type List1.clear This will completly clear the contence of the listbox. Note: The property ListCount stores the number of items in a list, so list1.ListCount can be used to determine the number of items in list box list1. The property ListIndex gives the index of the currently selected list item. So the statement list1.RemoveItem List1.ListIndex removes the currently highlighted list item. Adding an item can be accomplished very neatly using an input dialog box. Try this: list1.AddItem InputBox("Enter a day", "Add a Day") This will open a message box and prompt you for a new day to enter this will then be added to the list index at the bottem unless you specify were it should go. Combo BoxesCombo boxes are of three types (0,1 and 2), setting their properties/styles determines the type. Combo boxes (style 0 and 2 ) are a good choice if space is limited, becaue the full list is displayed as a drop down list, it does not occupy screen space until the down arrow is clicked. Picture of combo box style 0The user can either enter text in the edit field or select from the list of items by clicking on the (detached) down arrow to the right. The drop-down Combo box, list is viewed by clicking on the down arrow. This type of combo box does not have a down arrow because the list is displayed at all times. If there are more items than can be shown in the size of box you have drawn, vertical scroll bars are automatically added. As with previous type, users can enter text in the edit field. Drop-down List box (Style=2) It is slightly confusing to find this control under combo box. This control behaves like a regular list box except that the choices are not revealed until the down arrow is clicked. The user can select only from the choices given, there is no text entry facility. Note: Combo boxes of style 0 and 2 cannot respond to double click events. Lesson 3 Hopefully you will learn this during lesson 3. :
|