Sunteți pe pagina 1din 24

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM

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

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 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

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON

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.

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON

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

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON

3. Drag the primary key tbmember and tbdvd to transaction table then, save the relationship and all table.

How to Connect database file with Visual Studio.NET

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

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON

How to make the Optical Drives Rent Program


Startup Form

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).

For variable class

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON


Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.Opacity = 0.0 startuptm.Interval = 60 Syntax for activated the timer startuptm.Enabled = True startuptm.Start() 'Set up the dialog text at runtime according to the application's assembly information. 'TODO: Customize the application's assembly information in the "Application" pane of the project ' properties dialog (under the "Project" menu). 'Application title If My.Application.Info.Title <> "" Then ApplicationTitle.Text = My.Application.Info.Title Else 'If the application title is missing, use the application name, without the extension ApplicationTitle.Text = System.IO.Path.GetFileNameWithoutExtensi on(My.Application.Info.AssemblyName) End If 'Format the version information using the text set into the Version control at design time as the ' formatting string. This allows for effective localization if desired. ' Build and revision information could be included by using the following code and changing the ' Version control's designtime text to "Version {0}.{1:00}.{2}.{3}" or something similar. See ' String.Format() in Help for more information. ' ' Version.Text = System.String.Format(Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor, My.Application.Info.Version.Build, My.Application.Info.Version.Revision) Version.Text System.String.Format(Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor) 'Copyright info =

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON


Copyright.Text = My.Application.Info.Copyright End Sub Private Sub startuptm_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles startuptm.Tick If opacityRate >= 1.0 Then opacityRate = opacityRate + 1.0 If opacityRate >= 20.0 Then opacityRate = 0.99 Me.Opacity = opacityRate End If ElseIf maximizeRate Then opacityRate = opacityRate + 0.025 Me.Opacity = opacityRate If opacityRate >= 1.0 Then maximizeRate = False minimizeRate = True End If ElseIf minimizeRate Then opacityRate = opacityRate 0.025 If opacityRate < 0 Then opacityRate = 0 End If Me.Opacity = opacityRate If Opacity <= 0.0 Then minimizeRate = False maximizeRate = False End If Else startuptm.Stop() startuptm.Enabled = False startuptm.Dispose() Me.Visible = False Dim Login As New Login Login.Show() End If End Sub Private Sub MainLayoutPanel_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MainLayoutPanel.Paint End Sub End Class

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

Fake login script using IF function

Cancel script to close the project

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

Script to show about.vb

Script to show odrives.vb

Script to show member.vb

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON


Private Sub transbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles transbt.Click Me.Hide() Transaction.ShowDialog() End Sub Private Sub exbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exbt.Click MsgBox("Thanks for using our program") End End Sub End Class

Script to show Transaction.vb

Script to Close the project

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()

Autifilled by Visual Studio.Net

Script to add new record

Script to save new record

Script to remove current record

Script to move to first record

Script to move to previous record

Script to move to next record

11

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON


End Sub Private Sub lastbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lastbt.Click Me.TbmemberBindingSource.MoveLast() 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 End Class

Script to move to last record

Script to back to mainmenu

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

Autofilled by Visual Studio.Net

Script to back to mainmenu

Script to add new record

Script to save new record

Script to remove current record

13

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON


Private Sub firstbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles firstbt.Click Me.TransactionBindingSource.MoveFirst() End Sub Private Sub prevbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles prevbt.Click Me.TransactionBindingSource.MovePrevious( ) End Sub Private Sub nextbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nextbt.Click Me.TransactionBindingSource.MoveNext() End Sub Private Sub lastbt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lastbt.Click Me.TransactionBindingSource.MoveLast() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim total As Integer Dim bor As Integer = Val(Borrowed_atDateTimePicker.Value.DayOf Year) Dim ret As Integer = Val(Returned_atDateTimePicker.Value.DayOf Year) If ret - bor > 5 Then MsgBox("You Fined") Me.BackColor = Color.Red total = (ret - bor - 5) * 1000 total = FineTextBox.Text Else MsgBox("You do not forfeit") End If End Sub End Class

Script to move to first record

Script to move to previous record

Script to move to next record

Script to move to last record

Syntax using IF function for calculate the fine

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

Autifilled by Visual Studio.Net

Script to add new record

Script to save new record

Script to remove current record

Script to move to first record

Script to move to previous record

Script to move to next record

Script to move to last record

16

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Mainmenu.Show() End Sub End Class

Script to back to mainmenu

17

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON About Us Form

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).

Autofilled by Visual Studio.Net

18

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON


Me.LabelProductName.Text = My.Application.Info.ProductName Me.LabelVersion.Text = "Version beta 1.0" Me.LabelCopyright.Text = "Copyright 2011" Me.LabelCompanyName.Text = "SMA NEGERI 2 CIREBON" Me.TextBoxDescription.Text = "Description :This application is created by Mochamad Edwin Lokyta (15), Muhammad Irsyad Giffary (16), and Hanifan Nugraha (12).It() s created to complete ICT project SMA N 2 Cirebon 11th science 8 grade about microsoft access and Microsoft Visual Studio.Net.It used to manage the member data, transaction data, and item data." End Sub Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles detbt.Click Me.Hide() Detail.ShowDialog() End Sub End Class

Script for display the description about our project

Script for show the detail

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

XI SIENCE 8 SMA NEGERI 2 CIREBON (browse image)

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

Script for sback to main menu

How to use the Optical Drives Rent Program


1. Open the Project from Rent Optical Drives(folder)\bin\Debug\Rent Optical Drives(type : application) 2. Wait the startup till the Login Form appear

3. Then fill admin on usernames textbox and smanda on passwords textbox > click Login

4. Click ok on the MessageBox

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.

And Click OK to back to main menu.

21

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON

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

Muhammad Irsyad Giffary


Name Class Absent Date of Birth Place of Birth Address : Muhammad Irsyad Giffary : XI Science 8 : 16 : April 5, 1995 : Banten : Kapuk III Street Block G No. 17

22

INTERNATIONAL CERTIFICATE PARTNERSHIP PROGRAM SMA NEGERI 2 CIREBON

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

S-ar putea să vă placă și