private void button1_Click(object sender, EventArgs e) { //DBType = 0; //this.Close(); //Form1 form = new Form1(); FormSQLServer form = new FormSQLServer(); form.ShowDialog(); //form.Show(); //this.Hide(); }