AD
Administrator
Syncfusion Team
July 13, 2002 05:50 PM UTC
Hi Tony,
Sorry for the delay. The Modified property of EditControl can be set to be false to avoid the popup of the save modified dialog box, i.e.,
editControl1.Modified = false
The latest version of Essential Edit has removed the linkage between the edit control object and the application object, i.e., following code is removed from EditControl:
Application.ApplicationExit += new EventHandler(OnAppExit); ... private void OnAppExit(object sender, EventArgs evArgs) {
...
}
The garbage collection should be processed without problem with the above modification. However, it is up to user to hook up the Closing event of the parent form to achieve the save-modified function. Sample code for handling the Closing event of the parent form is listed below:
VB code:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
If (EditControl1.SaveModified()) Then
e.Cancel = False
Else
e.Cancel = True
End If
End Sub
C# code:
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (editControl1.SaveModified()) {
e.Cancel = false;
}
else
{
e.Cancel = true;
}
}
You will have to download the latest version from our website to get the changes.
Syncfusion Technical Support