Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frm_contaceptive_methods frm = new frm_contaceptive_methods();

            frm.ShowDialog();
            dt = new DataTable();
            dt = con.selectt("select * from Contaceptive_methods;");
            cmb_conceptive_methods1.DataSource    = dt;
            cmb_conceptive_methods1.ValueMember   = "id";
            cmb_conceptive_methods1.DisplayMember = "name";
            dt = con.selectt("select * from Contaceptive_methods;");
            cmb_conceptive_methods2.DataSource    = dt;
            cmb_conceptive_methods2.ValueMember   = "id";
            cmb_conceptive_methods2.DisplayMember = "name";
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            frm_contaceptive_methods frm = new frm_contaceptive_methods();

            frm.ShowDialog();
        }