Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 private void Clear()
 {
     TxtUname.Text = "";
     TxtPass.Text  = "";
     TxtUname.Focus();
 }