private void button1_Click(object sender, EventArgs e) { try { string code = textBox1.Text; string name = textBox3.Text; string describtion = textBox2.Text; double price = double.Parse(maskedTextBox1.Text.ToString()); Int64 quantaty = Int64.Parse(maskedTextBox2.Text.ToString()); Int64 ideal = Int64.Parse(maskedTextBox3.Text.ToString()); Int64 warnning = Int64.Parse(maskedTextBox4.Text.ToString()); ado_project d = new ado_project(); d.update_item(valuee, code, name, describtion, price, quantaty, ideal, warnning); MessageBox.Show("Done"); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; maskedTextBox1.Text = ""; maskedTextBox2.Text = ""; maskedTextBox3.Text = ""; maskedTextBox4.Text = ""; } catch (Exception) { MessageBox.Show("Try Again"); } //update_item up = new update_item(); //up.Refresh(); }