I'm trying to detect full screen mode with WebBrowser Control...
So, When the video is loaded into WebBrowser Control and you Double click on video then it's goes Full screen mode and if you Double click again it goes back to normal view mode.
Loading the Html file and Navigate:
WebBrowser1.Navigate App.Path & "\example.htm"
Here is the htm file called "example.htm" to load into WebBrowser Control:
<html> <body topmargin="0" leftmargin="0" scroll="no"> <iframe width="640" height="385" src="http://www.youtube.com/embed/xtYIEBOQ1eQ?rel=0&autoplay=1" allowfullscreen="true" menu="false" frameborder="0"> </iframe> </body> </html>
Now I wish to detect those events!
p.s. I already tried to use:
Private Sub WebBrowser1_OnFullScreen(ByVal FullScreen As Boolean) Form1.Caption = CStr(FullScreen) End Sub
But, it's nothing to do with Full screen what I'm trying to achieve.
(Also tried the Microsoft HTML Object Library, but nothing there useful)
Can someone help me out, please?