I am randomly losing focus to Main screen after closing Dialog box in C# program
I have a C# program that when the operator needs to scan out of a project, they press the Scan_Button on the main screen. This brings up a modal dialog box to enter their scan out data. Occasionally, after the close the dialog box, the focus is lost to the main screen (looking like the program has locked up).