In the submit button's click event I would like to close the infopath form. How do I do that? The following ways do not work.
thisApplication.ActiveWindow.Close(false);
thisApplication.ActiveWindow.Close(true);
this.thisApplication.Quit(true);
this.thisApplication.Quit(false);
thisApplication.Windows[0].Close(true);
thisApplication.Windows[0].Close(false);
Thanks!