private void Reset_Button_Click(object sender, EventArgs e) { Bill_Number_Textbox.Text = string.Empty; ResetAllControls(); Date_DatePicker.ResetText(); Bill_Type_ComboBox.SelectedItem = null; Date_DatePicker.Focus(); }
private void DeleteRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { progressBar.Close(); if (MessageBox.Show("Successfully Deleted Sales Details", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK) { Date_DatePicker.ResetText(); Bill_Type_ComboBox.SelectedItem = null; Bill_Number_Textbox.Text = string.Empty; ResetAllControls(); Date_DatePicker.Focus(); } }