public void KetNot() { using (SqlConnection connection = new SqlConnection(connectionSTR)) { try { MessageBox.Show("Openning Connection ..."); connection.Open(); MessageBox.Show("Connection successful!"); flogin lg = new flogin(); ServerConnect sv = new ServerConnect(); sv.Hide(); lg.Show(); } catch (Exception e) { MessageBox.Show("Error: " + e.Message); } } }
public void HideJoinServer() => serverConnect.Hide();