|
Rank: Newbie Groups: Member
Joined: 11/27/2018 Posts: 2
|
I download EO.Total.2018.3.46.0 and test eo.webbrowser in c# winform, This is a simple browser program. My pc has dual monitor, I run this program on primary screen and move it to second screen. when I browser youtube video and activate youtube full screen mode, the full screen displayed on primary screen, not on second screen. But if I run this program on second screen, it will display on second screen. how to slove it?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
You can handle the WebView's FullScreenModeChanged event and do the following inside the event handler:
1. If e.Fullscreen is true, then create a new Form on your second monitor, and set e.Parent to this new form. This way the browser engine will use your Form instead; 2. If e.Fullscreen is false, close the Form you created in step 1;
Please let us know if this works for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/27/2018 Posts: 2
|
This is a great idea. I follow it and slove this problem. Thank you very much.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Great. Glad to hear that it works for you!
|
|