Wait Cursor in VSTO word add-in application

前端 未结 2 384
情歌与酒
情歌与酒 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条回答
  • 2020-12-20 05:54

    Try the Mouse.OverrideCursor. Here are the possible options.

    0 讨论(0)
  • 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;
    }
    
    0 讨论(0)
提交回复
热议问题