You are on page 1of 8

VB.

NET TERM PAPER TOPIC:PARKING MANAGEMENT SYSTEM


SUBMITTED BY: ABHINAV SHARMA ROLL NO. 24 REG 3010060001 B.C.A-M.C.A (INT) SUBMITTED TO: MR. MANISH

ACKNOWLEDGEMENT
I would like to express my gratitude to all those who gave me the possibility to complete this Term Paper on PARKING MANAGEMENT SYSTEM WITH THE USE OF VB.NET AND DATA BASE CONNECTIVITY OF MS ACCESS. I want to thank the Department of Computer Applications of Lovely Professional University for giving me permission to commence this Paper, to do the necessary research work and to use institutes resources. . I am deeply indebted to my Lecturer MR. MANISH, whose help, stimulating suggestions and encouragement helped me in all the time of development and writing of this term paper. I would like to give my special thanks to all my friends for their help, support, interest and valuable hints.

ABHINAV SHARMA

Imports System.Data.OleDb Public Class Form1 Dim con As OleDbConnection Dim cmd As OleDbCommand Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() TextBox4.Clear() ComboBox1.SelectedItem = "" End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.Close() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open() cmd = New OleDbCommand("insert into info(p_id, v_no, v_type, d_name, l_number, t_in) values(" + TextBox1.Text + ",'" + TextBox2.Text + "','" + ComboBox1.SelectedItem + "','" + TextBox3.Text + "','" + TextBox4.Text + "'," + MonthCalendar1.TodayDate + ")", con) cmd.ExecuteNonQuery() con.Close()

End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\parking1.mdb") End Sub End Class

Imports System.Data.OleDb Public Class Form2 Dim con As OleDbConnection Dim cmd As OleDbCommand Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open() cmd = New OleDbCommand("update info set t_out=" + MonthCalendar1.TodayDate + " where p_id=" + TextBox1.Text + "", con) cmd.ExecuteNonQuery() con.Close() End Sub

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\parking1.mdb") End Sub End Class

Public Class Form3 Private Sub INToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INToolStripMenuItem.Click Form1.Show() End Sub Private Sub OUTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OUTToolStripMenuItem.Click Form2.Show() End Sub Private Sub INFORMATIONToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INFORMATIONToolStripMenuItem.Click form4.show() End Sub Private Sub EXITToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EXITToolStripMenuItem.Click Me.Close() End Sub Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub End Class

Imports System.Data.OleDb Public Class Form4 Dim Dim Dim Dim con As OleDbConnection cmd As OleDbCommand ds As DataSet da As OleDbDataAdapter

Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\parking1.mdb") con.Open() da = New OleDbDataAdapter("select * from info", con) ds = New DataSet() da.Fill(ds, "info") DataGridView1.DataSource = ds DataGridView1.DataMember = "info" End Sub Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick End Sub

End Class Dataset

You might also like