Ejemplo n.º 1
0
        private void button13_Click(object sender, EventArgs e)
        {
            Form17 s = new Form17();

            s.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            conn.Open();
            string           query = "insert into add_manufacturer(name,mobile,address,details) values ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "')";
            MySqlDataAdapter sda   = new MySqlDataAdapter(query, conn);

            sda.SelectCommand.ExecuteNonQuery();
            conn.Close();
            MessageBox.Show("Type successfully added");
            Form17 s = new Form17();

            s.Show();
            this.Hide();
        }