The control exposes the OpenedFileName property which will be set when a document is opened. When we try to open a new document, but instead click the Cancel of the OpenFileDialog and close the dialog, this property will be reset. However, the document stays the same. In this case, this property should not be reset.