コード例 #1
0
        /// <summary>
        /// change visible/enabled group box of new account and login
        /// </summary>
        private void ChangeGB()
        {
            Gb_newAcc.Enabled = !Gb_newAcc.Enabled;
            Gb_newAcc.Visible = !Gb_newAcc.Visible;
            Gb_Login.Enabled  = !Gb_Login.Enabled;
            Gb_Login.Visible  = !Gb_Login.Visible;

            Txt_username_create.Focus();
            Txt_username.Focus();
        }
コード例 #2
0
        private void Btn_novo_Click(object sender, EventArgs e)
        {
            Cb_nome.Enabled      = true;
            Nud_nivel.Enabled    = true;
            Cb_status.Enabled    = true;
            Txt_senha.Enabled    = true;
            Txt_senha2.Enabled   = true;
            Txt_username.Enabled = true;
            Btn_novo.Enabled     = false;
            Btn_salvar.Enabled   = true;

            Txt_username.Focus();
        }
コード例 #3
0
ファイル: login.cs プロジェクト: parham29/material_taamol
 private void login_Shown(object sender, EventArgs e)
 {
     Txt_username.Focus();
 }