private void Form1_Load(object sender, EventArgs e) { try { Helper h = new Helper(); SqlConnection con = h.GetConnect(); con.Open(); con.Close(); } catch (Exception) { frmConnection f = new frmConnection(); f.ShowDialog(); } txtDangNhap.Focus(); txt.Hide(); }
private void button_cauhinhdangnhap(object sender, EventArgs e) { frmConnection ct = new frmConnection(); ct.Show(); }