I need reset control method that will reset all controls in windows forms(MetroFrameWork)
I have several controls that need to be reset in the form_shown and after the btnSave_Click methods.
For the ComboBox controls I want to set the selected index to 0.
For the TextBox controls I want to set to empty or ""
For the RadioButton controls I want to set to Un-checked.
Total controls:
TextBox = 30.
RadioButton = 16. (RadionButtons are in different Panels.)
ComboBox = 33.
private void frmAdmin_Shown(object sender, EventArgs e)
{
resetComboBoxControls();
}
private void btnSave_Click(object sender, EventArgs e)
{
resetComboBoxControls();
resetTextBoxControls();
resetRadioButtonControls();
}
Hi,
Please send me more details about the controls. I am ready to start working on the code at any time and this should not take a long time to complete.
I am looking forward to your response and working with you to deliver source code that is well commented and is easy to maintain.
Thank you