Hi & thanks for looking!
How do I open default browser in fullscreen mode from a C# desktop application? I have seen similar questions on SO:
How to open in default browser in C#
. . .BUT nothing addresses opening a local HTML file (C: drive) in a FULLSCREEN browser window from C#.
I can open the window using this:
Process.Start("http://google.com");
But how do I make it default to fullscreen? Is there a way to simulate the F11 key press, or even something more direct?
EDIT: Ideally, I will not need to have a form open. I don't want to confuse the issue, but I am experimenting with the Kinect Speech Recognition engine and will have a program running in the system tray, always listening. I already have it to a point that I can say a command and it will. . .
//do stuff
. . .and in this case, I just want it to open the default browser in fullscreen mode.
So, I don't have to be able to toggle back and forth between fullscreen and regular screen, just launch in fullscreen. I was thinking that a simulation of the F11 press would be the answer, but it sounds like I need a form open for this??
Thanks!
Matt
For that you would need to use sendkeys
Looking at the list you need something like:
ActiveForm.SendKeys("{F11}");
Hope that solves your issue.