private void CmdCancel_Click(object sender, EventArgs e) { UpdateLogDetails(userName, userType); this.Hide(); FrmUserType f1 = new FrmUserType(); f1.Show(); }
private void timer1_Tick(object sender, EventArgs e) { progressBar1.Value = progressBar1.Value + 2; if (progressBar1.Value == 100) { timer1.Enabled = false; this.Hide(); FrmUserType f1 = new FrmUserType(); f1.Show(); } lblMarquee.Left = lblMarquee.Left - 120; if (lblMarquee.Left <= -1164) { lblMarquee.Left = 120; } }