private void BtnExit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { switch (MessageBox.Show("Do you want to exit ?", "WijayaSoft", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { case DialogResult.Yes: FrmLogin.ActiveForm.Close(); break; case DialogResult.No: TxtUname.Focus(); break; } }
private void Clear() { TxtUname.Text = ""; TxtPass.Text = ""; TxtUname.Focus(); }