Beispiel #1
0
        private void button15_Click(object sender, EventArgs e)
        {
            Form20 s = new Form20();

            s.Show();
            this.Hide();
        }
Beispiel #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            conn.Open();
            string           query = "insert into login(username,password) values ('" + textBox1.Text + "','" + textBox2.Text + "')";
            MySqlDataAdapter sda   = new MySqlDataAdapter(query, conn);

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

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