Gets or sets a value that indicates whether the data in a form has been modified since it was last saved.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
If the Dirty property is true, data in the form's underlying XML document has been changed since it was last saved. If false, no changes have occurred.
Changes that occur during a Loading event will not result in the Dirty property being set to true.
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.