private void TxtMobile_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { TxtAddr.Focus(); } }
private void InitControls() { TxtIdx.Clear(); TxtNames.Clear(); TxtAddr.Clear(); TxtMobile.Clear(); TxtEmail.Clear(); CboLevels.SelectedIndex = 0; TxtIdx.Focus(); baseMode = BaseMode.NONE; #region comboBox Dictionary /*Dictionary<string, string> dic = new Dictionary<string, string> * { * { "선택", "00" }, * { "서울특별시", "11" }, * { "부산광역시", "21" }, * { "대구광역시", "22" }, * { "인천광역시", "23" }, * { "광주광역시", "24" }, * { "대전광역시", "25" } * }; * * CboDivision.DataSource = new BindingSource(dic, null); * CboDivision.DisplayMember = "Key"; * CboDivision.ValueMember = "Value";*/ #endregion }
private void ClearTextControls() { TxtEmail.Text = TxtAddr.Text = TxtMobile.Text = TxtIdx.Text = TxtNames.Text = ""; CboLevels.SelectedIndex = -1; TxtIdx.ReadOnly = true; TxtIdx.BackColor = Color.Beige; TxtAddr.Focus(); }