private void ClearControls() { var controls = this.Controls; foreach (var control in controls) { if (control.GetType() == typeof(TextBox)) { TextBox txt = control as TextBox; txt.Clear(); } if (control.GetType() == typeof(ComboBox)) { ComboBox cmb = control as ComboBox; cmb.SelectedIndex = -1; } } //picLeftThumb.Image = Properties.Resources.biometric_ss1; //picRightThumb.Image = Properties.Resources.biometric_ss1; StatusText.Clear(); StatusText.Visible = false; }
private void btnClose_Click(object sender, EventArgs e) => StatusText.Clear();
private void btnReset_Click(object sender, EventArgs e) { //picRightThumb.Image = Properties.Resources.biometric_ss1; StatusText.Visible = false; StatusText.Clear(); }
private void clearStateBtn_Click(object sender, EventArgs e) { StatusText.Clear(); }