コード例 #1
0
        private void settingButton_Click(object sender, EventArgs e)
        {
            settingsForm form = new settingsForm();

            form.StartPosition = FormStartPosition.Manual;
            form.Location      = new Point(this.Location.X + (this.Width - form.Width) / 2, this.Location.Y + (this.Height - form.Height) / 2);
            form.Show(this);
        }
コード例 #2
0
 private void settingButton_Click(object sender, EventArgs e)
 {
     settingsForm form = new settingsForm();
     form.StartPosition = FormStartPosition.Manual;
     form.Location = new Point(this.Location.X + (this.Width - form.Width) / 2, this.Location.Y + (this.Height - form.Height) / 2);
     form.Show(this);
 }