Occurs when a file is deleted in a DocumentList control.
Namespace: Microsoft.WindowsCE.Forms Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)
The DocumentList control raises this event when a file is deleted so that you can close the file, if necessary. Use the Path property to get the path to the file.
For more information about handling events, see Consuming Events.
The following code example shows a method that handles the DeletingDocument event. This code example is part of a larger example provided for the DocumentList class.
privatevoid OnDelDoc(object obj, DocumentListEventArgs docg)
{
statusBar1.Text += "Deleted: " + docg.Path;
// Add code to close any instances of the file.
}