private void Reset_btn_Click(object sender, EventArgs e) { UserName_txt.Text = ""; Password_txt.Text = ""; UserName_txt.Select(); //Set up the Reset button action }
/// <summary> /// Handles Load event for user data Insert/Update operations /// Loading user data for update user data and binding controls with selected user record /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddUserMasterForm_Load(object sender, EventArgs e) { FormDatatableFromVo(); ComboBind(Country_cmb, cntryLangDatatable, "countrycode", "LocaleId"); ComboBind(FactoryCode_cmb, factoryDatatable, "code", "code"); UserCode_txt.Select(); if (string.Equals(mode, CommonConstants.MODE_UPDATE)) { LoadUserData(updateData); UserCode_txt.Enabled = false; UserName_txt.Select(); } }
private void EditUserInformation_Load(object sender, EventArgs e) { UserName_txt.Select(); DBConnect(); showDataGrid(); UserInfoGV.RowHeadersVisible = false; this.UserInfoGV.Columns[0].Width = 80; this.UserInfoGV.Columns[1].Width = 80; this.UserInfoGV.Columns[2].Width = 80; this.UserInfoGV.Columns[3].Width = 80; this.UserInfoGV.Columns[4].Width = 80; this.UserInfoGV.Columns[5].Width = 80; this.UserInfoGV.Columns[6].Width = 80; UserInfoGV.ColumnHeadersDefaultCellStyle.Font = new Font("Tahoma", 7, FontStyle.Bold); this.Resize += new EventHandler(Form1_Resize); X = this.Width; Y = this.Height; setTag(this); Form1_Resize(new object(), new EventArgs()); }
private void Reset_btn_Click(object sender, EventArgs e) { UserName_txt.Text = ""; Password_txt.Text = ""; UserName_txt.Select(); }