private void BtnSubmit_Click(object sender, EventArgs e) { label1.Visible = false; CommonClass.tagid = TxtTagid.Text.Trim(); string sql_select = string.Format("SELECT EmployeeMaster.* FROM EmployeeMaster where TagId='{0}'", TxtTagid.Text.Trim()); DataTable dt = new DataTable(); dt = obj.NonTransaction(sql_select); string name = dt.Rows[0]["EmployeeName"].ToString(); lblMsg.Visible = true; lblMsg.Text = "Thanks For Your Authentication" + " " + name; //MessageBox.Show("Thanks For Your Authentication" + " " + " "+ name); timer1.Enabled = true; }
private void timer1_Tick(object sender, EventArgs e) { count++; if (count == 5) { Login frm = new Login(); frm.Close(); EmployeeDetails emp = new EmployeeDetails(); emp.Show(); } }
timer1.Enabled = true;
count = 0; timer1.Start();
timer1.Stop();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)