Documente Academic
Documente Profesional
Documente Cultură
ADVANCE CERTIFICATE IN INFORMATION TECHNOLOGY VISUAL BASIC.NET PROJECT This task prepared by Mochamad Edwin Lokyta, Muhammad Irsyad Giffary and Hanifan Nugraha, as for this task is made to fulfill the duties of ICT on Microsoft access and visual basic.net led by Miss Reza and Mister Andri
Group Names : Mochamad Edwin Lokyta Muhammad Irsyad Giffary Hanifan Nugraha Class : XI SIENCE 8
IT Teachers Names : Mrs. Reza Mr.Andri School City : SMA NEGERI 2 CIREBON : Cirebon
Table of Contents
Table of Contents ....................................................................................................................... 1 Introduction ............................................................................................................................... 2 Report ........................................................................................................................................ 3 How to make database in Microsoft Access .......................................................................... 3 How to Connect database file with Visual Studio.NET .......................................................... 4 How to make the Optical Drives Rent Program ..................................................................... 5 Startup Form ...................................................................................................................... 5 Login Form ......................................................................................................................... 8 Main Menu Form ............................................................................................................... 9 Member Form .................................................................................................................. 10 Transaction Form ............................................................................................................. 12 Optical Drives Data Form ................................................................................................. 15 About Us Form ................................................................................................................. 18 How to use the Optical Drives Rent Program ...................................................................... 20 Conclusions .............................................................................................................................. 22 Strengths .............................................................................................................................. 22 Weaknesses ......................................................................................................................... 22 Our Profile ................................................................................................................................ 22 Mochamad Edwin Lokyta..................................................................................................... 22 Muhammad Irsyad Giffary ................................................................................................... 22 Hanifan Nugraha .................................................................................................................. 23
Introduction
Advances in technology today is really very fast, as with the development progress of the increasingly sophisticated computer software we certainly need to follow its development. One way is by trying to learn Microsoft Access for database management and Microsoft Visual Studio.NET for making program. Here we has taught Microsoft Access and Visual Studio.NET trying to practice all that has been taught by our teachers is to make the program "Optical Drives Rent" by using Microsoft Visual Studio.NET who collaborated with databases from Microsoft Access.
Report
How to make database in Microsoft Access
1. Insert 3 tables with the provisions as above 2. At View Design input Field Name and Data Type as below
3. Change the field size on general properties 4. After that fill the record on Datasheet View
To make relationship 1. Click database tools from reborn > Relationship 2. Add the all tables 3
3. Drag the primary key tbmember and tbdvd to transaction table then, save the relationship and all table.
Connect the Database to Visual Studio 2008 Click Data tollbar > Add New Data Source > Next > New Connection > Browse the Database File Name > Next > Click the checkbox Tables and Views > Finish
1. Add timer from Tollbox > Component > Timer 2. Change on properties dialog : (Name) Startup StartPosition Center Screen MainLayoutPanel : (Name) BackgroundImage Timer (Name) 3. Creat the script MainLayoutPanel (Browse the file)
startuptm
Public NotInheritable Class Startup Dim opacityRate As Double = 0.0 Dim maximizeRate As Boolean = True Dim minimizeRate As Boolean = False 'TODO: This form can easily be set as the splash screen for the application by going to the "Application" tab ' of the Project Designer ("Properties" under the "Project" menu).
To fill the interval timer to 60 second and show the login form
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON Login Form 1. Add 2 Labels, 2 Textbox and 2 Buttons 2. Change on properties dialog : (Name) Login StartPosition Center Screen Icon (Browse icon) Label1 Text Label2 Text Password Textbox1 (Name) usertxt Textbox2 (Name) Passtxt UseSystemPasswordChar True Button1 (Name) Loginbtn Text &Login (&L = L for hotkey using Alt + L) Button2 (Name) Cancelbtn Text &Cancel (&C = C for hotkey using Alt + C) 3. Creat the Script
Public Class Login Private Sub loginbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles loginbtn.Click If usertxt.Text = "admin" And passtxt.Text = "smanda" Then Me.Hide() MsgBox("Welcome to Optical Drive Rent Program") Mainmenu.ShowDialog() Else MsgBox("Please insert your username and password") Me.BackColor = Color.Red End If End Sub Private Sub cancelbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cancelbtn.Click End End Sub End Class
Username
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON Main Menu Form 1. Add 5 Buttons 2. Change on properties dialog : (Name) Mainmenu Icon (browse icon) BackgroundImage (Browse Image) StartPosition CenterScreen Button 1 (Name) Memberbt Text &Member (&M = M for hotkey using Alt + M)
Button 2 (Name) Text Button 3 (Name) Text Button 4 (Name) Text Button 5 (Name) Text 3. Create the script odbt &Optical Drives Data (&O = O for hotkey using Alt + O) Transbt &Transaction (&T = T for hotkey using Alt + T) Aboutbt About &Us (&U = U for hotkey using Alt + U) exbt &Exit(&E = E for hotkey using Alt + E)
Public Class Mainmenu Private Sub aboutbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles aboutbt.Click Me.Hide() about.ShowDialog() End Sub Private Sub odbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles odbt.Click Me.Hide() odrives.ShowDialog() End Sub Private Sub memberbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles memberbt.Click Me.Hide() member.ShowDialog() End Sub
Member Form
1. Drag the datasource from tbmember and DataGridView 2. Add 8 Buttons 3. Change on properties dialog : Text Member (Name) member StartPosition CenterScreen BackgroundImage (browse image) Icon (browse icon) Button 1 Text Home Button 2 Text Add (Name) addbt Button 3 Text Save (Name) savebt Button 4 Text Remove (Name) removebt Button 5 Text << 10
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON (Name) Button 6 Text (Name) Button 7 Text (Name) Button 8 Text (Name) 4. Create the script firstbt < prevbt > nextbt >> lastbt
Public Class member Private Sub member_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'DatabaseDataSet.tbmember' table. You can move, or remove it, as needed. Me.TbmemberTableAdapter.Fill(Me.DatabaseD ataSet.tbmember) End Sub Private Sub addbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addbt.Click Me.TbmemberBindingSource.AddNew() End Sub Private Sub savebt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles savebt.Click Me.TbmemberBindingSource.EndEdit() End Sub Private Sub delbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles removebt.Click Me.TbmemberBindingSource.RemoveCurrent() End Sub Private Sub firstbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles firstbt.Click Me.TbmemberBindingSource.MoveFirst() End Sub Private Sub prevbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles prevbt.Click Me.TbmemberBindingSource.MovePrevious() End Sub Private Sub nextbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nextbt.Click Me.TbmemberBindingSource.MoveNext()
11
Transaction Form
1. Drag the datasource from transaction and DataGridView 2. Add 9 Buttons and a picture box 3. Change on properties dialog : Text Transaction (Name) Transaction StartPosition CenterScreen BackgroundImage (browse image) Icon (browse icon) Button 1 Text Home Button 2 Text Add (Name) addbt Button 3 Text Save (Name) savebt Button 4 Text Remove (Name) removebt Button 5 Text << (Name) firstbt Button 6 12
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON Text (Name) Button 7 Text (Name) Button 8 Text (Name) Button 9 Text PictureBox 1 BackgroundImage 4. Create the script < prevbt > nextbt >> lastbt Check (browse image)
Public Class Transaction Private Sub Transaction_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'DatabaseDataSet.transaction' table. You can move, or remove it, as needed. Me.TransactionTableAdapter.Fill(Me.Databa seDataSet.transaction) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Mainmenu.Show() End Sub Private Sub addbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addbt.Click Me.TransactionBindingSource.AddNew() End Sub Private Sub savebt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles savebt.Click Me.TransactionBindingSource.EndEdit() End Sub Private Sub removebt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles removebt.Click Me.TransactionBindingSource.RemoveCurrent () End Sub
13
14
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON Optical Drives Data Form
1. Drag the datasource from tbmember and DataGridView 2. Add 8 Buttons 3. Change on properties dialog : Text Optical Drives Data (Name) odrives StartPosition CenterScreen BackgroundImage (browse image) Icon (browse icon) Button 1 Text Home Button 2 Text Add (Name) addbt Button 3 Text Save (Name) savebt Button 4 Text Remove (Name) removebt Button 5 Text << (Name) firstbt Button 6 Text < (Name) prevbt Button 7 Text > (Name) nextbt Button 8 Text >> (Name) lastbt 15
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON 4. Create the script
Public Class odrives Private Sub odrives_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'DatabaseDataSet.tbdvd' table. You can move, or remove it, as needed. Me.TbdvdTableAdapter.Fill(Me.DatabaseData Set.tbdvd) End Sub Private Sub addbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addbt.Click Me.TbdvdBindingSource.AddNew() End Sub Private Sub savebt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles savebt.Click Me.TbdvdBindingSource.EndEdit() End Sub Private Sub delbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles removebt.Click Me.TbdvdBindingSource.RemoveCurrent() End Sub Private Sub firstbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles firstbt.Click Me.TbdvdBindingSource.MoveFirst() End Sub Private Sub prevbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles prevbt.Click Me.TbdvdBindingSource.MovePrevious() End Sub Private Sub nextbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nextbt.Click Me.TbdvdBindingSource.MoveNext() End Sub Private Sub lastbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lastbt.Click Me.TbdvdBindingSource.MoveLast() End Sub
16
17
1. Add AboutBox1 from Add New Item 2. Change on properties dialog Text About Us StartPosition CenterScreen LogoPictureBox Image (browse image) 3. Create the script
Public NotInheritable Class about Private Sub AboutBox1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Set the title of the form. Dim ApplicationTitle As String If My.Application.Info.Title <> "" Then ApplicationTitle = My.Application.Info.Title Else ApplicationTitle = System.IO.Path.GetFileNameWithoutExtensio n(My.Application.Info.AssemblyName) End If Me.Text = String.Format("About {0}", ApplicationTitle) ' Initialize all of the text displayed on the About Box. ' TODO: Customize the application's assembly information in the "Application" pane of the project ' properties dialog (under the "Project" menu).
18
Detail
1. Add 3 GroupBox,6 Labels and 3 PictureBox 2. Change on properties dialog : (Name) Detail Text Detail Icon (browse icon) StartPosition CenterScreen GroupBox 1 Text Mochamad Edwin Lokyta GroupBox 2 Text Muhammad Irsyad Giffary GroupBox 3 Text Hhanifan Nugraha 19
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON Label 1 , 3 and 5 Text Label 2 , 4 and 6 Text PictureBox 1, 2 ,3 Image 3. Create the script
Public Class Detail Private Sub okbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles okbt.Click Me.Hide() Mainmenu.ShowDialog() End Sub End Class
3. Then fill admin on usernames textbox and smanda on passwords textbox > click Login
20
INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON 5. Click Member to view member form, Click Transaction to view Transaction form, Click Optical Drives Data to view Optical Drives Data form, Click About Us to view About Us form and Click Exit to close our project.
6. On Member, Transaction and Optical Drives Data form have the same procedure
Click Home to back to main menu, Click Add to add new data record, Click Saveto save the new data record , Click Remove to remove current record, Click << to move to the first record, Click < to move to the previous record, Click > to move to the next record, Click >> to move to the last record and at the Transaction Form Click Check to see you are fined or not. 7. On About Us Form
You can see the descriptions about this project, and if you clicl Detail you can see who is the creator of this project.
21
Conclusions
This program is created using Microsoft visual studio.net and supported by Microsoft Access and as for its usefulness is to process and store data and the grounds to meet the final task of the ICT project and in this program there are several forms such as startup, login form, the main menu, member, transaction, about us, and optical drives data.
Strengths
These programs have been included installer. These programs use the startup. This program has three main menus namely Member data, Transaction data, and the data items. This program can be used as a database program for processing data optical drives rent.
Weaknesses
Display which is still less attractive.
Our Profile
Mochamad Edwin Lokyta
Name Class Absent Date of Birth Place of Birth Address : Mochamad Edwin Lokyta : XI Science 8 : 15 : July 25, 1995 : Cirebon : Apel I Street Block A No. 72
22
Hanifan Nugraha
Name Class Absent Date of Birth Place of Birth Address : Hanifan Nugraha : XI Science 8 : 12 : March 1, 1995 : Bangka Belitung : Pembangunan Raya Street No. D 4
23