The questions:
- How to close an infopath form in C# style?
- https://stackoverflow.com/questions/11777406/close-infopath-form-with-managed-code
are duplicates.
Initially wrote this as proposal to make possible to flag the questions as dupes between SE sites but then saw the answer to Migrate SharePoint questions from other Stack Exchange sites here?
So, I answered the question in SO but, then, saw its dupe in Sharepoint site.
I feel my answer belongs to Sharepoint.
What should or can I do?
To copy-paste my reply?