mouse cursor disappears problem

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello,
Im working on a wpf application to control powerpoints presentations from my application running in background.
For this purpose I send from my application the required shortcuts to trigger the events in powerpoint, using System.Windows.Forms.SendKeys.SendWait("{F5}"); for instance to start the presentation. (I am just sending shortcuts, not escpecially to powerpoint,
so powerpoint needs to be my active window).
My problem is that then when I close my presentation from my application (sending the Escape key), my mouse cursor doesnt appear anymore in the powerpoint window, like if my mouse is hidden behind the window. The cursor is visible when I put it out of the
powerpoint window (if I hover the bottom windows bar for instance). This lasts as long as powerpoint is still my active window.
However, if I close the presentation using the escape key directly, I dont have this problem.
Does anyone have any idea of what might be causing that, and would have a solution to suggest?
Thank you

View the full article
 
Back
Top