I'm creating an InfoPath form in InfoPath 2010 Designer, that will be running in InfoPath 2007 and 2010 clients and contains C# code.
When the user clicks the submit button I need to execute some C# code, then submit and close. I can add the submit to the C# code, but closing the form seems only possible from a rule (which whould execute before the code).
I found and tried a hint, to configure the form to close automatically after the submit, but somehow this isn't working. Are there other ideas?