private void button2_Click(object sender, EventArgs e) { using (questiontime questime = new questiontime()) { questime.ShowDialog(); } }
private void AddQues_Load(object sender, EventArgs e) { comboBox1.Text = "a"; questiontime qt = new questiontime(); examtime = questiontime.examtime; examcode = questiontime.examcode; // MessageBox.Show(qt.examcode, "Message", MessageBoxButtons.OK, MessageBoxIcon.Error); label8.Text = q.ToString(); // TODO: This line of code loads data into the 'cCDataSet4.exam' table. You can move, or remove it, as needed. }