コード例 #1
0
 private void btnFormDGVShowDialog_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < NumWin; i++)
     {
         using (FormDGV f2 = new FormDGV(_dt))
         {
             f2.ShowDialog();
         }
     }
 }
コード例 #2
0
        private void btnFormDGVShowMenuStripShow_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < NumWin; i++)
            {
                FormDGV f1 = new FormDGV(_dt, showMenuStrip: true);
                f1.Show();

                if (!SpeedTest)
                {
                    while (!f1.IsDisposed)
                    {
                        Application.DoEvents();
                        System.Threading.Thread.Sleep(100);
                    }
                }
            }
        }