Off the top of my head I cannot think of an OM that would do it directly. However, you have a few options:
- If you do not use submit, set up a bogus submit adapter and make sure the form is set to close on submit. Then call Submit() from your code. Note that the browser window will not be closed but instead a message will be displayed that the form has closed.
- If you do use submit for other purposes or if you don't like that hack you can consider hosting your form in an ASPX page. It can respond to form events and do something such as closing the page altogether. This is more work, however.
David Airapetyan / Software Services ArchitectQdabra® Software
/ Streamline data gathering to turn process into knowledge