ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > ActiveReport Class : IsDirty Property |
private void mnuExit_Click(object sender, System.EventArgs e) { if (this.ardMain.Report.IsDirty == True) { MessageBox.Show ("Do you want to save your report?"); } else { this.Close(); } }
Private Sub mnuExit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuExit.Click If ardMain.Report.IsDirty Then MessageBox.Show("Would you like to save your report?") Else Me.Close() End If End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2