// update button private void button3_Click(object sender, EventArgs e) { deaf d = new deaf(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text); d.updateDeaf(); MessageBox.Show("The Deaf information is Updated"); textBox1.Enabled = true; textBox1.Text = ""; //empty id text textBox2.Text = ""; // empty name text textBox3.Text = ""; //empty email text textBox4.Text = ""; //empty password text textBox5.Text = ""; //empty username text panel1.Visible = false; textBox1.Enabled = true; }