Ejemplo n.º 1
0
        private void menuItemNew_Click(object sender, EventArgs e)
        {
            var isOK = openFileDialog1.ShowDialog();

            if (isOK == DialogResult.OK)
            {
                frmPicture frm = new frmPicture(openFileDialog1.FileName);
                frm.MdiParent = this;
                this.menuStrip1.AllowMerge = false;
                count++;
                frm.Text = "Picture - " + count + " - " + openFileDialog1.FileName;
                frm.Show();
            }

            toolStripStatusLabel1.Text = "Tổng số Form con: " + count.ToString();
        }