Wait Cursor in VSTO word add-in application

前端 未结 2 387
情歌与酒
情歌与酒 2020-12-20 05:19

I am creating a VSTO word add in. i\'m starting a long elaboration from ThisAddin and i would like to change the cursor to WaitCursor, so if I go to Globals.ThisAddIn.Applic

2条回答
  •  Happy的楠姐
    2020-12-20 05:58

    private static void SetCursorToWaiting()
    {
       Microsoft.Office.Interop.Word.Application application = Globals.ThisAddIn.Application;
       application.System.Cursor = wdCursorWait;
    }
    private static void SetCursorToDefault()
    {
       Microsoft.Office.Interop.Word.Application application = Globals.ThisAddIn.Application;
       application.System.Cursor = wdCursorNormal;
    }
    

提交回复
热议问题