//数据库配置 private void btnDataBaseConfig_Click(object sender, EventArgs e) { FrmDBConfiguration frm = new FrmDBConfiguration(); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); }
//设置数据库 private void btnSet_Click(object sender, EventArgs e) { FrmDBConfiguration con = new FrmDBConfiguration(); con.StartPosition = FormStartPosition.CenterParent; con.ShowDialog(); tbxUserName.Focus(); }