You are on page 1of 9

Homework Title / No.

: Course Code :CAP407

Course Instructor : Pankaj sir

Student’s Roll No a18 Section No. : D3802

I declare that this assignment is my individual work. I have not copied from any other student’s
work or from any other source except where due acknowledgment is made explicitly in the text,
nor has any part been written for me by another person.

Student’s Signature : Amit kumar

Evaluator’s comments:

Marks obtained : ___________ out of ______________________


. I am also thankful to my parents for provided me the equipments that are used for search work of the topic. This term paper was a difficult task for me but with the help of my teacher and the guidance of my parents I have completed this. At last I am also thankful to my friends and my classmates for their support and help.I am thankful to my course tutor miss Ravinder Mam for giving me this topic for making the term paper.

Design of the main form Coding of insert button .

TextBox5. TextBox2.Text = "" 'TextBox6.priya) TextBox1. DateTimePicker2.EventArgs) Handles Button1.Text = "" TextBox7. TextBox7.Text.Text = "" TextBox2. ByVal e As System. DateTimePicker1. ComboBox1.PriyaTableAdapter.DataSet1.Text.Text.Private Sub Button1_Click(ByVal sender As System.Text.Text.Fill(Me.Text = "" TextBox5.Object.Text) Me.Text = "" End .Click Me.Text = "" ComboBox1.Insert(TextBox1. TextBox3.Text.Text = "" TextBox3.PriyaTableAdapter.Text.Text = "" 'TextBox4.

ByVal e As System.Open() Dim s As String = "delete * from priya where name = '" + TextBox1.Text = "" ComboBox1. c) q.Text = "" End Sub Coding of search .DataSet1.Text = "" TextBox3.Close() Me.Text + "'" Dim q As New OdbcCommand(s.Coding of delete Private Sub Button3_Click(ByVal sender As System.PriyaTableAdapter.Text = "" 'TextBox4.Text = "" TextBox7.Fill(Me.Text = "" TextBox5.Click Dim c As New OdbcConnection("dsn=priya") c.Text = "" 'TextBox6.priya) TextBox1.Text = "" TextBox2.Object.EventArgs) Handles Button3.ExecuteNonQuery() c.

Item("no") End While End If c. c) dr = vCommand.Read TextBox1.HasRows) Then While dr. TextBox5.Item("cout") TextBox5. Private Sub Button5_Click(ByVal sender As System. update command Dim vCommand As OdbcCommand Dim dr As OdbcDataReader 'vConn = New OdbcConnection("dsn=Test") c.Text & "'" vCommand = New OdbcCommand(vQuery.Text = dr. DateTimePicker1.PriyaTableAdapter. TextBox7.ExecuteReader Me.Click Dim c As New OdbcConnection("dsn=priya") ''for running any insert.Item("type") TextBox7. TextBox3.Object.Text.EventArgs) Handles Button5.Item("phone") DateTimePicker1.Text.Item("cin") DateTimePicker2.Text = dr.Item("days") ComboBox1. delete.Close() End Sub .Text) If (dr.Text = dr.Text = dr.Insert(TextBox1. DateTimePicker2.Text Dim vQuery As String vQuery = "Select * from priya where name='" & TextBox1.Open() ' Dim empid As String ' empid = TextBox1.Text.Item("add") TextBox3.Text = dr. TextBox2.Text = dr.Text = dr.Text.Text. ByVal e As System. ComboBox1.Item("name") TextBox2.Text.Text.Text = dr.


Click Label9.Visible = True DataGridView1.Visible = True 'Me.Coding of show button Private Sub Button2_Click(ByVal sender As System.Size.Size.ToString("385") 'Me. ByVal e As System.EventArgs) Handles Button2.Width.ToString("533") End Sub .Height.Object.

Design of table .