Reputation: 2997
I have a fullscreen window, and I want to prevent pop up windows that appear at the right bottom corner of my screen. I set the Topmost property to true, but apparently it does not help. I also tried activating the form and giving it the focus once it got deactivated, but that did not help either. What is a way to ignore such windows while the user is engaged with the fullscreen app? I am .NET programming in C#.
Upvotes: 2
Views: 4011
Reputation: 28586
You can disable these balloon notifications using these steps:
Navigate to the following subkey:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
In the right pane, create a DWORD value named EnableBalloonTips
if you need help in how doing this by program, don't hesitate to ask ;)
Upvotes: 2
Reputation: 29584
You can't do it, this fails the "what if two programs tried to do this" test:
You can try and play dirty tricks to force your window to the top of the top-most z-order, but those popups are likely to use the exact same tricks, again making this all useless (and as an extra bonus all those dirty tricks can turn your app into a compatibility nightmare).
Upvotes: 5
Reputation: 62248
I used a sys tray popup control on my personal project SvnRadar written in WPF.
The control is at the http://www.hardcodet.net/projects/wpf-notifyicon written by Philipp Sumi. Very nice.Only thing you will be need to "detach" it from the SysTray screen coordinates and make it appear where you wish. Hope it helps. Good luck.
Upvotes: 0
Reputation: 12552
I don't think that you can block all the popups, windows might not let you do that. But you can try with SetWindowPos function and pass it HWND_TOP parameter. It might work a little better than Topmost = true.
Upvotes: 0