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.Application, there is no cursor property and i've tried with Cursor.Current = Cursors.WaitCursor;
when starting the elaboration, and Cursor.Current = Cursors.Default;
at the end of the elaboration, but doesn't work, the cursor doesn't change.
Any ideas on how to do this?
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;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With