So, I did for the Word App but now I am doing for the Powerpoint App but I don't know how to put an event on the exit of an instance of Powerpoint and also create an instance of Powerpoint.
Here is what I did for the Word App:
- using wd = Microsoft.Office.Interop.Word;
- wd.Application wdApp = new wd.Application();
- wdApp.Visible = true;
- ((wd.ApplicationEvents4_Event)wdApp).Quit += () => { MessageBox.Show("Exited!"); };

Tejas TrivediRank #1,247 · 1.4K reputationPosted Sep 22, 2016, 7:30 AM EDT
Ramesh PalaniappanRank #370 · 6.8K reputationPosted Sep 22, 2016, 7:37 AM EDT
Jim Tat52 reputationPosted Sep 22, 2016, 8:44 AM EDT
Tejas TrivediRank #1,247 · 1.4K reputationPosted Sep 22, 2016, 7:39 PM EDT
Jim Tat52 reputationPosted Sep 23, 2016, 7:33 AM EDT