Exemplo n.º 1
0
    private void btnNew_Click(object sender, EventArgs e)
    {
        frmDL f = new frmDL();

        frmDL.Evt += ReceiveEvent;
        f.Show();
        f.Activate();
        Application.DoEvents();
    }
        private void btnNew_Click(object sender, EventArgs e)
        {
            int num = 0;
            int x   = 0;

            num = Convert.ToInt32(txtForms.Text);
            for (x = 0; x < num; x++)
            {
                frmDL f = new frmDL();
                f.Evt += ReceiveEvent;
                f.iID  = x;
                f.Text = x.ToString();
                f.Show();
                f.Activate();
                Application.DoEvents();
            }
        }