diff --git a/CleanMachineHMI/Utils/frmUtil.cs b/CleanMachineHMI/Utils/frmUtil.cs index a43082c..41aa6bb 100644 --- a/CleanMachineHMI/Utils/frmUtil.cs +++ b/CleanMachineHMI/Utils/frmUtil.cs @@ -150,7 +150,9 @@ namespace CleanMachineHMI.Utils { try { - foreach (Control item in GetAllControls(form)) + var lstControls = GetAllControls(form); + lstControls.Add(form); + foreach (Control item in lstControls) { var key = form.Name + "|" + item.Name; if (!GlobalHelper.ThemeLanguage.ContainsKey(key))