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:
parent
93dd961a30
commit
08c20258a2
6
Form1.cs
6
Form1.cs
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user