locked
Application.OnUndoOrRedo event is not firing RRS feed

  • Question

  • Hello,

         Event OnUndoOrRedo of application object is not firing. Following is the code i have written:

    private void ThisAddIn_Startup(object sender, System.EventArgs e)

            {

                this.Application.NewProject += new MSProject._EProjectApp2_NewProjectEventHandler(Application_NewProject);

                _appObj = this.Application;

     

                this.Application.OnUndoOrRedo += new MSProject._EProjectApp2_OnUndoOrRedoEventHandler(Application_OnUndoOrRedo);

            }

     

            void Application_OnUndoOrRedo(string bstrLabel, string bstrGUID, bool fUndo)

            {

                //throw new NotImplementedException();

                MessageBox.Show("Event Fired");

            } 

     

    I am implementing through VSTO addin .

     

     

    Thanks,

    Ram

    Friday, June 18, 2010 10:05 AM

Answers