Acknowledgement
Acknowledgement
Declaration:
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.
Evaluator’s comments:
_____________________________________________________________________
Acknowledgement
I am thankful to my course tutor miss Ravinder Mam for giving me this
topic for making the term paper. 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.
c.Open()
Dim s As String = "delete * from priya where name = '" + TextBox1.Text
+ "'"
Dim q As New OdbcCommand(s, c)
q.ExecuteNonQuery()
c.Close()
Me.PriyaTableAdapter.Fill(Me.DataSet1.priya)
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
'TextBox4.Text = ""
TextBox5.Text = ""
'TextBox6.Text = ""
ComboBox1.Text = ""
TextBox7.Text = ""
End Sub
Coding of search
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
Dim c As New OdbcConnection("dsn=priya")
''for running any insert, delete, update command
Dim vCommand As OdbcCommand
Dim dr As OdbcDataReader
c.Open()
If (dr.HasRows) Then
While dr.Read
TextBox1.Text = dr.Item("name")
TextBox2.Text = dr.Item("add")
TextBox3.Text = dr.Item("phone")
DateTimePicker1.Text = dr.Item("cin")
DateTimePicker2.Text = dr.Item("cout")
TextBox5.Text = dr.Item("days")
ComboBox1.Text = dr.Item("type")
TextBox7.Text = dr.Item("no")
End While
End If
c.Close()
End Sub
Coding of show button
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Label9.Visible = True
DataGridView1.Visible = True
'Me.Size.Width.ToString("385")
'Me.Size.Height.ToString("533")
End Sub
Design of table