form ShowDialog in an editevent

Discussion created by jadams on Dec 19, 2012
Latest reply on Dec 26, 2012 by jadams
Here in my workflow:

1. Click a button on a toolbar - edit session starts
2. Listen for the OnSketchFinished event of the editor
3. Display a data entry dialog for the user to fill in
4. Click the OK button on the dialog to close the form and save edits

The problem I'm running into is I'm unable to use Form.ShowDialog in the OnSketchFinished event and execute stop editing because I'm still inside of the OnSketchFinished event.  It works as expected if I use a non-modal form (Form.Show()) however, ArcMap is still usable, which I don't want.

Any suggestions on how to open a required dialog from the OnSketchFinished event and stop editing when the dialog closes?  Thank you!