Esempio n. 1
0
        private void buttonCenter_Click(object sender, EventArgs e)
        {
            自定义窗体 fm = new 自定义窗体();

            fm.ShowDialog();
            this.StartPosition = FormStartPosition.CenterScreen;
        }
Esempio n. 2
0
        private void buttonCustomPosition_Click(object sender, EventArgs e)
        {
            int x = 0, y = 0;

            int.TryParse(textBox1.Text, out x);
            int.TryParse(textBox2.Text, out y);
            自定义窗体 fm = new 自定义窗体(x, y);

            fm.ShowDialog();
        }
Esempio n. 3
0
        private void buttonCustomShape_Click(object sender, EventArgs e)
        {
            自定义窗体 fm = new 自定义窗体(true);

            fm.ShowDialog();
        }