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

            s.Show();
            this.Hide();
        }
Esempio 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();
        }