Closing Modal Window using SCSF

Topics: CAB & Smart Client Software Factory
Jul 5, 2007 at 6:11 AM
I was having a look at the BankBranchWorkBench solution and found that on closing the Find Customer dialog box, the main application window goes to the background and comes back on front again. On tracing the code, i found the issue was in the WindowWorkspaceExtended class in the function below.

protected override void OnClose(Control smartPart)
Form host = WindowssmartPart;

On commenting the host.Hide() line things seem to work. I haven't faced any side effects of commenting this code out. Just want to make sure if anyone is aware of the significance of this line of code.