I come here because I have to, on a project, block access to windows users to applications.
I have a client/server architecture, with a client listening on a port. When the server sends a message, the client must open a WPF window, with the message sent by the server. (message such as "Fire Alert","Terrorist Attack" or other). So, my WPF has to make more than sixty percent of the screen, be in the foreground.
For the moment, I've put my form in TopMode, with a size that makes sixty percent of the screen.
this.Height = (System.Windows.SystemParameters.PrimaryScreenHeight * 0.60);
this.Width = (System.Windows.SystemParameters.PrimaryScreenWidth * 0.60);
WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
this.Topmost = true;
The problem is when there is a split screen (or more than two screens), I can't block the second screen. So I thought about disabling the second screen, but I didn't find much on the internet.
So I'm here to ask for advice, do you know if that's possible? Do you have any other ideas?
Thank you !