private void DoClear() {//Clear text box ID_txt.Clear(); Name_txt.Clear(); Price_txt.Clear(); Qty_txt.ResetText(); }
private void Add_btn_Click(object sender, EventArgs e) { Id_txt.Clear(); Id_txt.Enabled = false; Name_txt.Clear(); SN_txt.Clear(); }
public void ClearTextBox() { Name_txt.Clear(); Address_txt.Clear(); Company_txt.Clear(); Contact_txt.Clear(); Email_txt.Clear(); }
public void ClearTextBox() { Name_txt.Clear(); Date_txt.Text = ""; Amount_txt.Text = string.Empty; Description_txt.Clear(); Category_txt.Text = ""; }
public void ClearTextBox() { Name_txt.Clear(); Code_txt.Clear(); Unit_txt.Text = string.Empty; Description_txt.Clear(); Quantity_txt.Clear(); }
public void clear() { ID_txt.Clear(); Name_txt.Clear(); Age_txt.Clear(); Location_txt.Clear(); if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); pictureBox1.Image = null; } Points_textBox.Clear(); }
private void Add_Click(object sender, EventArgs e) { //if (emp.Verify_User_ID(User_ID.Text).Rows.Count == 0) //{ try { emp.add_user(ID_txt.Text, Name_txt.Text, password_txt.Text, permission_combo.Text, Address_txt.Text, Email_txt.Text, isLogged_txt.Text); MessageBox.Show("The user was successfully added to the database!", "Adding user", MessageBoxButtons.OK, MessageBoxIcon.Information); ID_txt.Clear(); Name_txt.Clear(); password_txt.Clear(); Address_txt.Clear(); Email_txt.Clear(); permission_combo.Text = ""; }catch (Exception exp) { exp.ToString(); } //} //else // MessageBox.Show("This user already exist in database!", "Adding user", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error); }
public void ClearTextBox() { Name_txt.Clear(); }