private void button2_Click(object sender, EventArgs e) { bb.Product_Id = Convert.ToInt16(textBox1.Text); bb.Product_Name = textBox2.Text; bb.Category_Id = Convert.ToInt16(textBox3.Text); bb.UnitPrice = Convert.ToInt16(textBox4.Text); bb.UnitInstock = Convert.ToInt16(textBox5); bb.Update_record(bb.Product_Id); }