Any method for determining current MouseCursor?

I use App.MouseCursor to give a “hint” to users that they can’t click things. However, there are instances where I need to show a decision dialog where the cursor should be a StandardPointer until the dialog is closed. At that point, I need to return the pointer back to the Wait cursor. The predicament is that sometimes that dialog is displayed when the cursor isn’t the wait pointer, so automatically resetting it to the wait cursor on close is not the correct option.

Is there any way to get the current pointer so that it can be reset later? It appears that App.MouseCursor is “write only”.

One kludge that I thought of was to use a global boolean to track when I change the cursor, but being able to read the cursor setting seems to be more useful.

It turns out that I was trying to read it as a picture rather than a MouseCursor and the comparison of

If App.MouseCursor <> System.Cursors.StandardPointer Then

Doesn’t give an expected boolean result. I now set a global g_AppMouseCursor As MouseCursor and then track that in the dialogs’ Open and Close events.

When calling a MessageDialog or In a Custom Dialog Open:

g_AppMousePointer = App.MouseCursor App.MouseCursor = System.Cursors.StandardPointer

In Close:

   App.MouseCursor = g_AppMousePointer