private void button3_Click_1(object sender, EventArgs e) { SqlCommand command = new SqlCommand("select * from mycontact"); DataTable table = new DataTable(); table = ct.SelectContactList(command); SelectContactForm frm = new SelectContactForm(); frm.dataGridView1.DataSource = table; frm.Show(); }
private void button5_Click(object sender, EventArgs e) { SelectContactForm se = new SelectContactForm(); se.Show(); }