private void button1_Click(object sender, EventArgs e)
        {
            cmd = new MySqlCommand("insert into credit values(?a,?b,?c,?d,?e)", con);
            cmd.Parameters.AddWithValue("?a", textBox1.Text);
            cmd.Parameters.AddWithValue("?b", textBox2.Text);
            cmd.Parameters.AddWithValue("?c", textBox3.Text);
            cmd.Parameters.AddWithValue("?d", textBox4.Text);
            cmd.Parameters.AddWithValue("?e", dateTimePicker1.Text);
            cmd.ExecuteNonQuery();
            MessageBox.Show("succesfully Added...!");


            Form8 f8 = new Form8();

            f8.Show();
            this.Hide();
        }
Beispiel #2
0
        private void manualToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form8 f8 = new Form8();

            f8.Show();
        }