It only works properly if the gotfocus of the form gets fired - I thought setting the focus back to a control on the form would do that but there you go! Is there another way of forcing focus back to the form. I have tried thisform.click() and thisform.gotfocus() but neither work.