I have a (Windows Forms) application that consists of a single window with the "TopMost" property set. If an application (e.g. PowerPoint) temporarily enters full screen mode the "TopMost" behavior of my window is not restored (i.e. it will remain hidden the maximized PowerPoint window). Interestingly, this only happens when my application is started BEFORE the other application -- if the other application is started prior to mine things works as expected. Activating the window (manually clicking on it) restores开发者_开发问答 the desired behavior but this is unfortunately not a solution for me.
I am unsure what causes this problem and I would be very interested in fix or a workaround.
Since this may be an OS related issue I should point out that I am using Windows 7 64-bit.
Thanks, Peter
Try setting the topmost property to: false
Then back to: true
This should override ppts topmost property.
You can repeat this every few seconds in your program using the Timer
class
精彩评论