Ejemplo n.º 1
0
        private void consultasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form f2 = new Form2();

            f2.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 form2 = new Form2(accno, cardno, pin);

            form2.Show();
        }
Ejemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2();

            f2.Show();
        }
 public void InvokeMethod()
 {
     form2 = new Form2();
     //This function will be on main thread if called by Control.Invoke/Control.BeginInvoke
     Application.Run(form2);
 }