Bugfix: Clearform functionality working again now that controls are put in a panel.

Bugfix: Correctly clear db numeric up down values
This commit is contained in:
kougyokugentou 2020-05-09 21:51:21 -07:00
parent 93dd961a30
commit 08c20258a2
1 changed files with 5 additions and 1 deletions

View File

@ -308,7 +308,7 @@ namespace DBWizard
*/
private void ClearForm()
{
foreach(Control c in this.Controls)
foreach(Control c in panel1.Controls)
{
if (c is TextBox)
{
@ -344,6 +344,10 @@ namespace DBWizard
}
} // foreach
//clear dbid values
studentDbID.Value = 0;
parentDbID.Value = 0;
//clear parent data
parent_lastNameTextBox.Text = string.Empty;
parent_firstNameTextBox.Text = string.Empty;