private void Btn_New_Click(object sender, EventArgs e)
        {
            Btn_Add.Enabled    = true;
            Btn_Update.Enabled = false;

            RText_User.ResetText();
            RText_Password.ResetText();
            Com_User.SelectedIndex = -1;
            DGV_Users.ClearSelection();
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Btn_SaveSetting.Enabled   = true;
            Btn_UpdateSetting.Enabled = false;

            RText_User.ResetText();
            RText_Password.ResetText();
            Com_User.ResetText();
            DGV_Users.ClearSelection();
        }
 private void Frm_Users_Load(object sender, EventArgs e)
 {
     RText_User.Focus();
     DGV_Users.ClearSelection();
 }