示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            AppZoom_Child3 form = new AppZoom_Child3();

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
        }
示例#2
0
        private void myImageButton_Click(object sender, EventArgs e)
        {
            Form form = null;

            if (sender == this.myImageButton1)
            {
                form = new AppZoom_Child1();
            }
            else if (sender == this.myImageButton2)
            {
                form = new AppZoom_Child2();
            }
            else if (sender == this.myImageButton6)
            {
                form = new AppZoom_Child3();
            }
            else
            {
                MessageBox.Show("Show other forms.");
            }
            if (form != null)
            {
                form.StartPosition = FormStartPosition.CenterParent;
                form.ShowDialog(this);
            }
        }