private void showDBconf(Form parent) { DBConf frm = new DBConf(); frm.StartPosition = FormStartPosition.CenterParent; frm.ShowDialog(); }
private void pictureBox1_Click(object sender, EventArgs e) { this.AutoSize = true; DBConf frm = new DBConf(); frm.StartPosition = FormStartPosition.CenterParent; frm.ShowDialog(); }